Skip to content

PUGL_OPENGL_ES_API does not work under macOS #132

@falkTX

Description

@falkTX

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions