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
@@ -370,6 +370,8 @@ GLFWAPI int glfwGetOSMesaDepthBuffer(GLFWwindow* handle,
GLFWAPI OSMesaContext glfwGetOSMesaContext(GLFWwindow* handle)
{
_GLFWwindow* window = (_GLFWwindow*) handle;
assert(window != NULL);
_GLFW_REQUIRE_INIT_OR_RETURN(NULL);
if (window->context.source != GLFW_OSMESA_CONTEXT_API)