From 65d3c15b014adfb833b7197bd2efd35f6a0b06d6 Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Mon, 5 Sep 2016 20:56:09 +0100 Subject: OPENGL: Add missing USE_OSD defined checks around OSD code --- backends/graphics/opengl/opengl-graphics.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp index c491b03f1f..bea9c927e5 100644 --- a/backends/graphics/opengl/opengl-graphics.cpp +++ b/backends/graphics/opengl/opengl-graphics.cpp @@ -367,7 +367,10 @@ void OpenGLGraphicsManager::updateScreen() { && !_gameScreen->isDirty() && !(_overlayVisible && _overlay->isDirty()) && !(_cursorVisible && _cursor && _cursor->isDirty()) - && _osdAlpha == 0) { +#ifdef USE_OSD + && _osdAlpha == 0 +#endif + ) { return; } _forceRedraw = false; @@ -378,7 +381,9 @@ void OpenGLGraphicsManager::updateScreen() { _cursor->updateGLTexture(); } _overlay->updateGLTexture(); +#ifdef USE_OSD _osd->updateGLTexture(); +#endif // Clear the screen buffer. if (_scissorOverride && !_overlayVisible) { -- cgit v1.2.3