glfw/glfw

Wayland native access requires setting the API hint

sanguinariojoe opened this issue · 1 comments

As long as glfwGetEGLContext() checks that

    if (window->context.source != GLFW_EGL_CONTEXT_API)
    {
        _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL);
        return EGL_NO_CONTEXT;
    }

If one does not set the hint glfwWindowHint(GLFW_CONTEXT_CREATION_API, GLFW_EGL_CONTEXT_API);, then it will remain as GLFW_NATIVE_CONTEXT_API, and subsequently glfwGetEGLContext() is failing

I do not know if some other client APIs are affected

Thank you for bringing this up! There was no longer any reason for this behavior. It should be gone now with 228e582.