mirror of
https://github.com/glfw/glfw.git
synced 2026-01-11 23:33:16 +01:00
Added error reporting to glfwSetWindowParam.
This commit is contained in:
@@ -995,6 +995,7 @@ GLFWAPI int glfwGetWindowParam(GLFWwindow window, int param)
|
||||
case GLFW_OPENGL_PROFILE:
|
||||
return window->glProfile;
|
||||
default:
|
||||
_glfwSetError(GLFW_INVALID_ENUM);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user