Add assertions for context function invariants
Port from upstream glfw See 93d70cb6a8c9571b5b493936596633a1a8538cea
This commit is contained in:
parent
a28e9a0146
commit
8e39041619
1 changed files with 1 additions and 0 deletions
1
glfw/egl_context.c
vendored
1
glfw/egl_context.c
vendored
|
|
@ -223,6 +223,7 @@ static int extensionSupportedEGL(const char* extension)
|
|||
static GLFWglproc getProcAddressEGL(const char* procname)
|
||||
{
|
||||
_GLFWwindow* window = _glfwPlatformGetTls(&_glfw.contextSlot);
|
||||
assert(window != NULL);
|
||||
|
||||
if (window->context.egl.client)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue