OPENGL: Add missing USE_OSD defined checks around OSD code

This commit is contained in:
Thierry Crozat 2016-09-05 20:56:09 +01:00
parent ef71f37a9c
commit 65d3c15b01

View File

@ -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) {