mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-18 18:30:59 +00:00
GRAPHICS: Disable overlay rendering on GL3/ES2
This commit is contained in:
parent
8e8c9c32df
commit
2c936f0334
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user