# OpenGL ES 2 display problems on iOS

**URL:** <https://ifnotnil.com/t/opengl-es-2-display-problems-on-ios/4201>\
**Category:** Other\
**Created:** [8 December 2024 13:21 UTC](https://ifnotnil.com/t/opengl-es-2-display-problems-on-ios/4201 "2024-12-08T13:21:31Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jalih](https://ifnotnil.com/user_avatar/ifnotnil.com/jalih/32/5003_2.png) [@jalih](https://ifnotnil.com/u/jalih)\
**Post date:** [8 December 2024 13:21 UTC](https://ifnotnil.com/t/opengl-es-2-display-problems-on-ios/4201/1 "2024-12-08T13:21:31Z")

</div>

Any ideas, why would OpenGL ES 2 program fail to display anything on iOS but work perfectly on Raspberry Pi and Android?

---

<div class="post-metadata">

**Author:** ![thorstenstueker](https://ifnotnil.com/letter_avatar_proxy/v4/letter/t/aca169/32.png) [@thorstenstueker](https://ifnotnil.com/u/thorstenstueker)\
**Post date:** [8 December 2024 14:18 UTC](https://ifnotnil.com/t/opengl-es-2-display-problems-on-ios/4201/2 "2024-12-08T14:18:52Z")

</div>

Which AI Version it uses on IOS?

> **[OpenGL ES Hardware Processors](https://developer.apple.com/library/archive/documentation/OpenGLES/Conceptual/OpenGLESHardwarePlatformGuide_iOS/OpenGLESPlatforms/OpenGLESPlatforms.html)**
>
> Describes the OpenGL ES hardware support for iOS devices.

This should lead you to the needed informations. Apple deprecates OpenGL ES and serves Apple Metal. A few small problems coming up.

---

<div class="post-metadata">

**Author:** ![jalih](https://ifnotnil.com/user_avatar/ifnotnil.com/jalih/32/5003_2.png) [@jalih](https://ifnotnil.com/u/jalih)\
**Post date:** [8 December 2024 14:41 UTC](https://ifnotnil.com/t/opengl-es-2-display-problems-on-ios/4201/3 "2024-12-08T14:41:47Z")

</div>

AI version? It’s actually the developer of 8th programming language having issues with iOS build. Nuklear GUI is using SDL2 and OpenGL ES as it’s rendering backend. Events come through but nothing gets displayed. The problem is only with iOS build, all the other work fine.

I know OpenGL ES is depreceated by Apple but I think, it should still work and one code base for all the supported 8th platforms would probably be a nice feature to keep.

---

<div class="post-metadata">

**Author:** ![thorstenstueker](https://ifnotnil.com/letter_avatar_proxy/v4/letter/t/aca169/32.png) [@thorstenstueker](https://ifnotnil.com/u/thorstenstueker)\
**Post date:** [8 December 2024 14:45 UTC](https://ifnotnil.com/t/opengl-es-2-display-problems-on-ios/4201/4 "2024-12-08T14:45:16Z")

</div>

API Version sorry  
And yes it is deprecated and works only partially. It can not be a base anymore. 8th should provide a backend for metal

---

<div class="post-metadata">

**Author:** ![DaveS](https://ifnotnil.com/user_avatar/ifnotnil.com/daves/32/79_2.png) [@DaveS](https://ifnotnil.com/u/DaveS)\
**Post date:** [8 December 2024 16:03 UTC](https://ifnotnil.com/t/opengl-es-2-display-problems-on-ios/4201/5 "2024-12-08T16:03:04Z")

</div>

Try SceneKit or Spritekit, both are part of iOS and work quite well

---

<div class="post-metadata">

**Author:** ![npalardy](https://ifnotnil.com/user_avatar/ifnotnil.com/npalardy/32/10_2.png) [@npalardy](https://ifnotnil.com/u/npalardy)\
**Post date:** [10 December 2024 20:32 UTC](https://ifnotnil.com/t/opengl-es-2-display-problems-on-ios/4201/6 "2024-12-10T20:32:11Z")

</div>

Guess it depends on what version 8th expects ?

> **[OpenGL ES | Apple Developer Documentation](https://developer.apple.com/documentation/opengles)**
>
> Create 3D and 2D graphics effects with this compact, efficient subset of OpenGL.

Every last one is deprecated

---

<div class="post-metadata">

**Author:** ![jalih](https://ifnotnil.com/user_avatar/ifnotnil.com/jalih/32/5003_2.png) [@jalih](https://ifnotnil.com/u/jalih)\
**Post date:** [10 December 2024 20:54 UTC](https://ifnotnil.com/t/opengl-es-2-display-problems-on-ios/4201/7 "2024-12-10T20:54:00Z")

</div>

> [@npalardy](#):
>
> Guess it depends on what version 8th expects ?

GLES2 is enough. Anyone tried Google’s ANGLE? It’s seems to be supported by SDL2.

---

<div class="post-metadata">

**Author:** ![npalardy](https://ifnotnil.com/user_avatar/ifnotnil.com/npalardy/32/10_2.png) [@npalardy](https://ifnotnil.com/u/npalardy)\
**Post date:** [10 December 2024 23:31 UTC](https://ifnotnil.com/t/opengl-es-2-display-problems-on-ios/4201/8 "2024-12-10T23:31:16Z")

</div>

Cant say I have

EDIT : Sounds promising though (from wikipedia)

> ANGLE is currently used by [Google Chrome](https://en.wikipedia.org/wiki/Google_Chrome) (embedded into the [Blink browser engine](https://en.wikipedia.org/wiki/Blink_(browser_engine))), [Firefox](https://en.wikipedia.org/wiki/Firefox),[[9]](https://en.wikipedia.org/wiki/ANGLE_(software)#cite_note-geek3d-9) [Edge](https://en.wikipedia.org/wiki/Microsoft_Edge), [WebKit](https://en.wikipedia.org/wiki/WebKit), and the [Qt Framework](https://en.wikipedia.org/wiki/Qt_Framework).[[10]](https://en.wikipedia.org/wiki/ANGLE_(software)#cite_note-qt-10) The engine is also used by [Windows 10](https://en.wikipedia.org/wiki/Windows_10) for compatibility with apps ported from [Android](https://en.wikipedia.org/wiki/Android_(operating_system)).[[11]](https://en.wikipedia.org/wiki/ANGLE_(software)#cite_note-Windows_10-11) Throughout 2019, the Apple team contributed a [Metal API](https://en.wikipedia.org/wiki/Metal_(API)) backend for the ANGLE so Apple devices could run on their native graphics APIs.[[12]](https://en.wikipedia.org/wiki/ANGLE_(software)#cite_note-:3-12)

---

<div class="post-metadata">

**Author:** ![jalih](https://ifnotnil.com/user_avatar/ifnotnil.com/jalih/32/5003_2.png) [@jalih](https://ifnotnil.com/u/jalih)\
**Post date:** [27 December 2024 05:27 UTC](https://ifnotnil.com/t/opengl-es-2-display-problems-on-ios/4201/9 "2024-12-27T05:27:24Z")

</div>

It seems, on iOS it’s required to specify that you want GLES3 and not GLES2 to make it work.
