diff --git a/src/window.c b/src/window.c index b87d5853..167b7591 100644 --- a/src/window.c +++ b/src/window.c @@ -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; } }