}
}
- // Inform core of context destruction & shutdown EGL
+ // Inform core of context destruction
mCore.ContextDestroyed();
currentSurface = mAdaptorInterfaces.GetRenderSurfaceInterface();
if( currentSurface )
currentSurface = nullptr;
}
+ // Shutdown EGL
+ eglInterface->TerminateGles();
+
LOG_UPDATE_RENDER( "THREAD DESTROYED" );
// Uninstall the logging function