-
Notifications
You must be signed in to change notification settings - Fork 37
Description
I was doing some experiments for better support of GLESv2 and GLESv3 under DPF and while testing on macOS I couldn't get test code to run on macOS while it does run fine on Linux.
For example when targetting GLESv3, with PUGL setup like this:
puglSetViewHint(view, PUGL_CONTEXT_API, PUGL_OPENGL_ES_API);
puglSetViewHint(view, PUGL_CONTEXT_PROFILE, PUGL_OPENGL_CORE_PROFILE);
puglSetViewHint(view, PUGL_CONTEXT_VERSION_MAJOR, 3);
The shaders fail to build with this error:
ERROR: 0:1: '' : version '300' is not supported
The first line on my shaders is a simple:
#version 300 es
Looking around in pugl I see PUGL_CONTEXT_API is only used for Linux, so that might explain why it does not work.
I looked into what other frameworks were doing to support GLES under macOS, and in SDL is a whole mess as it changes to use EGL instead of regular macOS calls.
Seems like macOS doesn't support this at all, and since OpenGL is tagged as deprecated for many years the situation will not change.
I did not check under Windows.
PS: I opened the ticket for visibility and not really expecting the situation to change, using GLES on Linux with low-power ARM boards makes sense as they typically do not implement full desktop OpenGL.