Fix context API checks in native access functions

This commit is contained in:
Ioannis Tsakpinis
2021-10-23 16:17:33 +03:00
parent 56a4cb0a3a
commit 727db55c3a
5 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -783,7 +783,7 @@ GLFWAPI HGLRC glfwGetWGLContext(GLFWwindow* handle)
return NULL;
}
if (window->context.client != GLFW_NATIVE_CONTEXT_API)
if (window->context.source != GLFW_NATIVE_CONTEXT_API)
{
_glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL);
return NULL;