Skip to content

Glfw platform macros not set #16

@trbabb

Description

@trbabb

I had some trouble with glfwCreateWindowWGPUSurface() returning nullptr, and after debugging found that the internal switch was falling through to L178 in glfw3webgpu.c because none of the platform macros had been defined. Manually adding the appropriate one for my platformed allowed the function to perform correctly.

What is supposed to define those? I do not see them anywhere in the glfw3 header or anything about them in the instructions. I'm on OSX Sequoia 15.6.1; glfw3 was installed with homebrew; I am using Dawn as a backend, and my project sets pkg-config --cflags --libs --static glfw3. I am not using CMake.

If there is a necessary extra build step, could this be added to the documentation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions