aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/graphics/openglsdl/openglsdl-graphics.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp
index bca0750169..c3584daa86 100644
--- a/backends/graphics/openglsdl/openglsdl-graphics.cpp
+++ b/backends/graphics/openglsdl/openglsdl-graphics.cpp
@@ -328,8 +328,6 @@ bool OpenGLSdlGraphicsManager::setupMode(uint width, uint height) {
}
_hwScreen = SDL_SetVideoMode(width, height, 32, flags);
- // Part of the WORKAROUND mentioned above.
- _lastVideoModeLoad = SDL_GetTicks();
if (!_hwScreen) {
// We treat fullscreen requests as a "hint" for now. This means in
@@ -339,6 +337,9 @@ bool OpenGLSdlGraphicsManager::setupMode(uint width, uint height) {
}
}
+ // Part of the WORKAROUND mentioned above.
+ _lastVideoModeLoad = SDL_GetTicks();
+
if (_hwScreen) {
// This is pretty confusing since RGBA8888 talks about the memory
// layout here. This is a different logical layout depending on