Add assertions for context function invariants

Related to #2327

(cherry picked from commit 93d70cb6a8)
This commit is contained in:
Camilla Löwy
2023-12-03 17:07:25 +01:00
parent cb0dafa7c0
commit c98860db9e
4 changed files with 7 additions and 5 deletions
+1
View File
@@ -190,6 +190,7 @@ static void swapBuffersGLX(_GLFWwindow* window)
static void swapIntervalGLX(int interval)
{
_GLFWwindow* window = _glfwPlatformGetTls(&_glfw.contextSlot);
assert(window != NULL);
if (_glfw.glx.EXT_swap_control)
{