This commit is contained in:
Kovid Goyal 2024-04-24 08:57:49 +05:30
parent d89e68f5e9
commit b7e22a357f
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

4
glfw/context.c vendored
View file

@ -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,