diff --git a/RenderSystems/GL3Plus/src/windowing/EGL/PBuffer/OgreEglPBufferSupport.cpp b/RenderSystems/GL3Plus/src/windowing/EGL/PBuffer/OgreEglPBufferSupport.cpp index af4f07ac630..b0633a78542 100644 --- a/RenderSystems/GL3Plus/src/windowing/EGL/PBuffer/OgreEglPBufferSupport.cpp +++ b/RenderSystems/GL3Plus/src/windowing/EGL/PBuffer/OgreEglPBufferSupport.cpp @@ -407,6 +407,7 @@ namespace Ogre if( deviceData.eglCtx ) { + eglMakeCurrent( deviceData.eglDisplay, 0, 0, 0 ); eglDestroyContext( deviceData.eglDisplay, deviceData.eglCtx ); deviceData.eglCtx = 0; }