...
This commit is contained in:
parent
d89e68f5e9
commit
b7e22a357f
1 changed files with 2 additions and 2 deletions
4
glfw/context.c
vendored
4
glfw/context.c
vendored
|
|
@ -434,11 +434,11 @@ bool _glfwStringInExtensionString(const char* string, const char* extensions)
|
|||
|
||||
GLFWAPI void glfwMakeContextCurrent(GLFWwindow* handle)
|
||||
{
|
||||
_GLFW_REQUIRE_INIT();
|
||||
|
||||
_GLFWwindow* window = (_GLFWwindow*) handle;
|
||||
_GLFWwindow* previous = _glfwPlatformGetTls(&_glfw.contextSlot);
|
||||
|
||||
_GLFW_REQUIRE_INIT();
|
||||
|
||||
if (window && window->context.client == GLFW_NO_API)
|
||||
{
|
||||
_glfwInputError(GLFW_NO_WINDOW_CONTEXT,
|
||||
|
|
|
|||
Loading…
Reference in a new issue