summaryrefslogtreecommitdiffstats
path: root/gpu/pgl/pgl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/pgl/pgl.cc')
-rw-r--r--gpu/pgl/pgl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpu/pgl/pgl.cc b/gpu/pgl/pgl.cc
index 59c2635..d357fe2 100644
--- a/gpu/pgl/pgl.cc
+++ b/gpu/pgl/pgl.cc
@@ -223,7 +223,7 @@ PGLBoolean pglDestroyContext(PGLContext pgl_context) {
return PGL_FALSE;
if (pgl_context == pglGetCurrentContext())
- pglMakeCurrent(PGL_NO_CONTEXT);
+ pglMakeCurrent(NULL);
delete static_cast<PGLContextImpl*>(pgl_context);
return PGL_TRUE;