# WEBGL code in WEBEDITOR does not work

**URL:** <https://discourse.processing.org/t/webgl-code-in-webeditor-does-not-work/13475>\
**Category:** p5.js\
**Created:** [August 19, 2019, 2:30pm UTC](https://discourse.processing.org/t/webgl-code-in-webeditor-does-not-work/13475 "2019-08-19T14:30:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rubbing](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@rubbing](https://discourse.processing.org/u/rubbing)\
**Post date:** [August 19, 2019, 2:30pm UTC](https://discourse.processing.org/t/webgl-code-in-webeditor-does-not-work/13475/1 "2019-08-19T14:30:05Z")

</div>

When I use the p5.js web editor all my WEBGL codes do not work. It was working a few hours ago. What is everyone else’s experience?

EDIT: I tested my code on my mothers laptop and it works on mozilla firefox, for some reason it does not work on my laptop woth google chrome?

UPDATE: Yeah it works on Mozilla firefox. What could the possible problems be? My WEBGL codes on chrome are either blank or a background colored canvas.

---

<div class="post-metadata">

**Author:** ![dan850](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@dan850](https://discourse.processing.org/u/dan850)\
**Post date:** [August 19, 2019, 10:27pm UTC](https://discourse.processing.org/t/webgl-code-in-webeditor-does-not-work/13475/2 "2019-08-19T22:27:07Z")

</div>

Hi @rubbing, this tends to be an issue in chrome. This link should help - [https://www.thewindowsclub.com/webgl-is-not-supported-on-chrome-firefox](https://www.thewindowsclub.com/webgl-is-not-supported-on-chrome-firefox) What OS are you using?

---

<div class="post-metadata">

**Author:** ![rubbing](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@rubbing](https://discourse.processing.org/u/rubbing)\
**Post date:** [August 20, 2019, 3:49am UTC](https://discourse.processing.org/t/webgl-code-in-webeditor-does-not-work/13475/3 "2019-08-20T03:49:21Z")

</div>

Thanks for your help ! The link sent me to the right direction. For some reason rather than enabling " Use hardware acceleration when available," disabling it helped.

---

<div class="post-metadata">

**Author:** ![dan850](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@dan850](https://discourse.processing.org/u/dan850)\
**Post date:** [August 25, 2019, 3:30am UTC](https://discourse.processing.org/t/webgl-code-in-webeditor-does-not-work/13475/4 "2019-08-25T03:30:39Z")

</div>

Glad to help. Best of luck on your project!
