# WebGL context lost on some Iphone devices

**URL:** <https://forum.babylonjs.com/t/webgl-context-lost-on-some-iphone-devices/52293>\
**Category:** Questions\
**Created:** [July 24, 2024, 1:09pm UTC](https://forum.babylonjs.com/t/webgl-context-lost-on-some-iphone-devices/52293 "2024-07-24T13:09:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matteo\_FF](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@Matteo\_FF](https://forum.babylonjs.com/u/Matteo_FF)\
**Post date:** [July 24, 2024, 1:09pm UTC](https://forum.babylonjs.com/t/webgl-context-lost-on-some-iphone-devices/52293/1 "2024-07-24T13:09:32Z")

</div>

> **[Babylon.js Playground](https://playground.babylonjs.com/#2Q8ZJI%233)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

> **[Babylon.js Playground](https://playground.babylonjs.com/#5LKHX9%232)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

Hi, i receiving randomly this error “WebGL: context lost.” on Iphone XR/11/12/13 also latest version of with IOS 17, with both Safari and Chrome.  
Any advice on how to handle this error?

Thanks,  
Matthew

 ![Babylon.js Playground](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/7/a/7a86fa5b7d8b9f6424c5ba06a3a300fef054fefe.jpeg)  
 ![Screenshot 2024-07-24 at 14.46.43](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/0/5/05ac3444d591dda7b61cba792813e598ab26ec4b.png)

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [July 24, 2024, 3:15pm UTC](https://forum.babylonjs.com/t/webgl-context-lost-on-some-iphone-devices/52293/2 "2024-07-24T15:15:18Z")

</div>

Try with `engine.disableUniformBuffers = true`

---

<div class="post-metadata">

**Author:** ![Matteo\_FF](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@Matteo\_FF](https://forum.babylonjs.com/u/Matteo_FF)\
**Post date:** [July 31, 2024, 7:49am UTC](https://forum.babylonjs.com/t/webgl-context-lost-on-some-iphone-devices/52293/3 "2024-07-31T07:49:34Z")

</div>

Thanks for the support, we finally figured out that the problem was mainly due to using .hdr maps in the scene.  
Replacing with .env doesn’t seem to be this problem anymore.  
Thanks for the support.
