diff options
Diffstat (limited to 'src/gui/egl/qegl.cpp')
-rw-r--r-- | src/gui/egl/qegl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/egl/qegl.cpp b/src/gui/egl/qegl.cpp index 8b20a9e..671a568 100644 --- a/src/gui/egl/qegl.cpp +++ b/src/gui/egl/qegl.cpp @@ -64,7 +64,7 @@ public: static void ref() { contexts.ref(); } static void deref() { if (!contexts.deref()) { - eglTerminate(QEglContext::display()); + eglTerminate(QEgl::display()); displayOpen = 0; } } @@ -535,6 +535,7 @@ static _eglDestroyImageKHR qt_eglDestroyImageKHR = 0; EGLDisplay QEgl::display() { + static EGLDisplay dpy = EGL_NO_DISPLAY; if (!QEglContextTracker::displayOpened()) { dpy = eglGetDisplay(nativeDisplay()); QEglContextTracker::setDisplayOpened(); |