• Corentin Wallez's avatar
    Fail Vulkan surface creation if window has context · 8a8eefa0
    Corentin Wallez authored
    OpenGL / OpenGL ES cannot share presentation on a window with Vulkan.
    This adds an error to `glfwCreateWindowSurface` when it is called on a
    window without the GLFW_CLIENT_API hint set to GLFW_NO_API.  This
    prevents undefined bahevior and hard to debug crashes.
    Fixes #1194.
    Closes #1205.
vulkan.c 11.3 KB