# IOS 15 and WebGL 2 Issues

**URL:** <https://forum.babylonjs.com/t/ios-15-and-webgl-2-issues/23984>\
**Category:** Questions\
**Created:** [September 21, 2021, 10:57am UTC](https://forum.babylonjs.com/t/ios-15-and-webgl-2-issues/23984 "2021-09-21T10:57:00Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kesshi](https://avatars.discourse-cdn.com/v4/letter/k/b782af/32.png) [@Kesshi](https://forum.babylonjs.com/u/Kesshi)\
**Post date:** [September 21, 2021, 10:57am UTC](https://forum.babylonjs.com/t/ios-15-and-webgl-2-issues/23984/1 "2021-09-21T10:57:00Z")

</div>

I just updated my IPhone SE and IPad Air 2 to IOS 15 and tested my app.  
It seems that the WebGL 2 support is somehow broken regarding SSAO2.

On my IPad i just get a blank/white screen if i use SSAO2. On my IPhone it works but the background color is always black (not the clearcolor i want).

Here a simple PG: it should have a green background with SSAO2 enabled:  
[https://playground.babylonjs.com/#963KHM](https://playground.babylonjs.com/#963KHM)

Can somebody please test this with other IOS devices. Is it working for newer devices? What would be the best way to detect those issues at runtime? … maybe i have to disable webgl 2 for IOS devices in general ☹

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [September 21, 2021, 11:14am UTC](https://forum.babylonjs.com/t/ios-15-and-webgl-2-issues/23984/2 "2021-09-21T11:14:37Z")

</div>

@CraigFeldspar is actually looking into related bugs but I guess this one might lie deep in their browser stack ☹ Could you open a ticket on the webkit bug tracker ?

---

<div class="post-metadata">

**Author:** ![Kesshi](https://avatars.discourse-cdn.com/v4/letter/k/b782af/32.png) [@Kesshi](https://forum.babylonjs.com/u/Kesshi)\
**Post date:** [September 21, 2021, 3:28pm UTC](https://forum.babylonjs.com/t/ios-15-and-webgl-2-issues/23984/3 "2021-09-21T15:28:39Z")

</div>

I think its not very helpful to create an issue like “SSAO2 in BabylonJS does not work” in the webkit bug tracker. I think we need a more detailed/technical description for the problem. Maybe @CraigFeldspar knows the underlying reason why its not working.

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [September 21, 2021, 3:33pm UTC](https://forum.babylonjs.com/t/ios-15-and-webgl-2-issues/23984/4 "2021-09-21T15:33:05Z")

</div>

The thing is it can be plenty of things and I would bet on a weird bug in their draw buffers rendering or msaa with draw buffers.

---

<div class="post-metadata">

**Author:** ![Kesshi](https://avatars.discourse-cdn.com/v4/letter/k/b782af/32.png) [@Kesshi](https://forum.babylonjs.com/u/Kesshi)\
**Post date:** [September 21, 2021, 3:35pm UTC](https://forum.babylonjs.com/t/ios-15-and-webgl-2-issues/23984/5 "2021-09-21T15:35:23Z")

</div>

No idea if it helps. This webgl2 threejs example i the only one which is not working: [three.js examples](https://threejs.org/examples/#webgl2_multiple_rendertargets).

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [September 21, 2021, 3:39pm UTC](https://forum.babylonjs.com/t/ios-15-and-webgl-2-issues/23984/6 "2021-09-21T15:39:07Z")

</div>

Yup it uses multiple attachments as well so it is definitely related.

---

<div class="post-metadata">

**Author:** ![Kesshi](https://avatars.discourse-cdn.com/v4/letter/k/b782af/32.png) [@Kesshi](https://forum.babylonjs.com/u/Kesshi)\
**Post date:** [September 21, 2021, 3:51pm UTC](https://forum.babylonjs.com/t/ios-15-and-webgl-2-issues/23984/7 "2021-09-21T15:51:49Z")

</div>

Could some please test my playground with newer IOS devices and also on Mac with Safari 15. I fear that our app is currently broken for all Safari 15 users 😟

---

<div class="post-metadata">

**Author:** ![FBa](https://avatars.discourse-cdn.com/v4/letter/f/f4b2a3/32.png) [@FBa](https://forum.babylonjs.com/u/FBa)\
**Post date:** [September 21, 2021, 4:37pm UTC](https://forum.babylonjs.com/t/ios-15-and-webgl-2-issues/23984/8 "2021-09-21T16:37:29Z")

</div>

Might be an evolving situation at the moment. As of this morning, I tried my web app on Safari iOS 15, seems to load fine (didn’t yesterday). [https://jam4d.herokuapp.com](https://jam4d.herokuapp.com)

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [September 21, 2021, 6:16pm UTC](https://forum.babylonjs.com/t/ios-15-and-webgl-2-issues/23984/9 "2021-09-21T18:16:21Z")

</div>

@FBa it is because I added a workaround in babylon yesterday but they will take WAY MORE TIME to release the fix… It has actually already been addressed in WebKit but you know WebGL and Safari…

---

<div class="post-metadata">

**Author:** ![Kesshi](https://avatars.discourse-cdn.com/v4/letter/k/b782af/32.png) [@Kesshi](https://forum.babylonjs.com/u/Kesshi)\
**Post date:** [September 22, 2021, 6:21am UTC](https://forum.babylonjs.com/t/ios-15-and-webgl-2-issues/23984/10 "2021-09-22T06:21:27Z")

</div>

There is a long list of failing conformance tests in the webkit bug tracker:  
[https://bugs.webkit.org/buglist.cgi?bug\_status= **open** &content=webgl%2F2.0&no\_redirect=1&order=changeddate%20DESC%2Cpriority%2Cbug\_severity&query\_format=specific](https://bugs.webkit.org/buglist.cgi?bug_status= __open__ &content=webgl%2F2.0&no_redirect=1&order=changeddate%20DESC%2Cpriority%2Cbug_severity&query_format=specific)

I think it may take a while before we get proper WebGL2 support ☹

---

<div class="post-metadata">

**Author:** ![CryptoSoots](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cryptosoots/32/17279_2.png) [@CryptoSoots](https://forum.babylonjs.com/u/CryptoSoots)\
**Post date:** [September 22, 2021, 9:57am UTC](https://forum.babylonjs.com/t/ios-15-and-webgl-2-issues/23984/11 "2021-09-22T09:57:16Z")

</div>

No more crashes when I enabled Develop → Experimental Features → GPU Process: WebGL 👀

---

<div class="post-metadata">

**Author:** ![guido\_wikipoint](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/guido_wikipoint/32/18808_2.png) [@guido\_wikipoint](https://forum.babylonjs.com/u/guido_wikipoint)\
**Post date:** [September 22, 2021, 11:03am UTC](https://forum.babylonjs.com/t/ios-15-and-webgl-2-issues/23984/12 "2021-09-22T11:03:44Z")

</div>

@Kesshi I ran a couple of tests on Browserstack (iPad Pro 12.9 2018, Safari, IOS15 and iPhone 11 Pro, IOS15) and got the attached results.  
Browserstack is updating the real devices to IOS15 so I will throw a couple more tests once they are updated.

 ![Browserstack test iPad Pro 12.9 2018](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/a/5/a571c82e89b9df59860c8188eb84770acb45f965.jpeg)  
 ![Browserstack test iPhone11 Pro](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/f/1/f1070dd2cd05277d8bffa93603ad580dfae1b6d0.jpeg)

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [September 22, 2021, 11:18am UTC](https://forum.babylonjs.com/t/ios-15-and-webgl-2-issues/23984/13 "2021-09-22T11:18:51Z")

</div>

@Kesshi I would advise to currently black list those devices to rely on SSAO2 on your app at least until cause looking into webkit bug tracker is sad

---

<div class="post-metadata">

**Author:** ![CraigFeldspar](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/craigfeldspar/32/45631_2.png) [@CraigFeldspar](https://forum.babylonjs.com/u/CraigFeldspar)\
**Post date:** [September 22, 2021, 11:42am UTC](https://forum.babylonjs.com/t/ios-15-and-webgl-2-issues/23984/14 "2021-09-22T11:42:09Z")

</div>

On macOS with M1, everything works, either safari 15 or chrome. I agree totally with @sebavan, there is probably not much we can do as SSAO2 uses drawbuffer spec from webgl2, which seems to be the faulty part here

---

<div class="post-metadata">

**Author:** ![Kesshi](https://avatars.discourse-cdn.com/v4/letter/k/b782af/32.png) [@Kesshi](https://forum.babylonjs.com/u/Kesshi)\
**Post date:** [September 22, 2021, 11:56am UTC](https://forum.babylonjs.com/t/ios-15-and-webgl-2-issues/23984/15 "2021-09-22T11:56:32Z")

</div>

Thank you. It seems that newer apple devices are working correctly. But for now i will stay on the safe side and will disable webgl2 for Safari browsers in general. I will test it again after the next Safari update. … until now our apple users didn’t had SSAO2 anyway so it should not be a big deal

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [September 22, 2021, 11:58am UTC](https://forum.babylonjs.com/t/ios-15-and-webgl-2-issues/23984/16 "2021-09-22T11:58:14Z")

</div>

Agree but I am still so frustrated when this is happening 🙂

---

<div class="post-metadata">

**Author:** ![jeremy-coleman](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jeremy-coleman/32/15493_2.png) [@jeremy-coleman](https://forum.babylonjs.com/u/jeremy-coleman)\
**Post date:** [September 22, 2021, 12:13pm UTC](https://forum.babylonjs.com/t/ios-15-and-webgl-2-issues/23984/17 "2021-09-22T12:13:42Z")

</div>

Ms , google, netflix, epic, etc should all publicly shame them in marketing material so there are consequences to their dumbassery.
