mirror of
https://github.com/glfw/glfw.git
synced 2026-09-23 09:08:58 +00:00
Fix context API checks in native access functions
(cherry picked from commit 727db55c3a)
This commit is contained in:
committed by
Camilla Löwy
parent
ca676357c0
commit
db85858062
+1
-1
@@ -365,7 +365,7 @@ GLFWAPI id glfwGetNSGLContext(GLFWwindow* handle)
|
||||
_GLFWwindow* window = (_GLFWwindow*) handle;
|
||||
_GLFW_REQUIRE_INIT_OR_RETURN(nil);
|
||||
|
||||
if (window->context.client != GLFW_NATIVE_CONTEXT_API)
|
||||
if (window->context.source != GLFW_NATIVE_CONTEXT_API)
|
||||
{
|
||||
_glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL);
|
||||
return nil;
|
||||
|
||||
Reference in New Issue
Block a user