mirror of
https://github.com/gwm17/glfw.git
synced 2024-12-03 07:28:51 -05:00
Added error reporting to glfwSetWindowParam.
This commit is contained in:
parent
c1ef0a875d
commit
8dfbce46fd
|
@ -995,6 +995,7 @@ GLFWAPI int glfwGetWindowParam(GLFWwindow window, int param)
|
||||||
case GLFW_OPENGL_PROFILE:
|
case GLFW_OPENGL_PROFILE:
|
||||||
return window->glProfile;
|
return window->glProfile;
|
||||||
default:
|
default:
|
||||||
|
_glfwSetError(GLFW_INVALID_ENUM);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user