GRAPHICS: Disable overlay rendering on GL3/ES2

This commit is contained in:
Dries Harnie 2014-01-14 00:26:41 +01:00
parent 8e8c9c32df
commit 2c936f0334

View File

@ -318,6 +318,7 @@ Graphics::PixelBuffer SurfaceSdlGraphicsManager::setupScreen(int screenW, int sc
void SurfaceSdlGraphicsManager::updateScreen() {
#ifdef USE_OPENGL
if (_opengl) {
#ifndef USE_OPENGL_SHADERS
if (_overlayVisible) {
if (_overlayDirty) {
// remove if already exist
@ -412,6 +413,7 @@ void SurfaceSdlGraphicsManager::updateScreen() {
glPopAttrib();
}
#endif
SDL_GL_SwapBuffers();
} else
#endif