Fix missing assertions for native access functions

This commit is contained in:
Camilla Löwy
2024-03-10 16:18:08 +01:00
parent 738dd6ff1d
commit 38ec7abd3b
13 changed files with 45 additions and 0 deletions
+2
View File
@@ -776,6 +776,8 @@ GLFWbool _glfwCreateContextWGL(_GLFWwindow* window,
GLFWAPI HGLRC glfwGetWGLContext(GLFWwindow* handle)
{
_GLFWwindow* window = (_GLFWwindow*) handle;
assert(window != NULL);
_GLFW_REQUIRE_INIT_OR_RETURN(NULL);
if (_glfw.platform.platformID != GLFW_PLATFORM_WIN32)