aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/sdl
diff options
context:
space:
mode:
authorAlejandro Marzini2010-07-15 04:01:41 +0000
committerAlejandro Marzini2010-07-15 04:01:41 +0000
commit9ef2fc4744f88837c63150b09655ae3e51023b7e (patch)
tree0da80d52789b9cc4251c5df3e8bbb5b0707d44f5 /backends/graphics/sdl
parentd677ba5a1146ae48c0831e1056350d3efa2e43fd (diff)
downloadscummvm-rg350-9ef2fc4744f88837c63150b09655ae3e51023b7e.tar.gz
scummvm-rg350-9ef2fc4744f88837c63150b09655ae3e51023b7e.tar.bz2
scummvm-rg350-9ef2fc4744f88837c63150b09655ae3e51023b7e.zip
Fixed doing OpenGL calls before a graphical context was created.
svn-id: r50905
Diffstat (limited to 'backends/graphics/sdl')
-rw-r--r--backends/graphics/sdl/sdl-graphics.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/graphics/sdl/sdl-graphics.cpp b/backends/graphics/sdl/sdl-graphics.cpp
index 8b42f837ca..efb8e9afc8 100644
--- a/backends/graphics/sdl/sdl-graphics.cpp
+++ b/backends/graphics/sdl/sdl-graphics.cpp
@@ -921,7 +921,8 @@ void SdlGraphicsManager::internUpdateScreen() {
ScalerProc *scalerProc;
int scale1;
-#if defined (DEBUG) && ! defined(_WIN32_WCE) // definitions not available for non-DEBUG here. (needed this to compile in SYMBIAN32 & linux?)
+ // definitions not available for non-DEBUG here. (needed this to compile in SYMBIAN32 & linux?)
+#if defined (DEBUG) && !defined(WIN32) && !defined(_WIN32_WCE)
assert(_hwscreen != NULL);
assert(_hwscreen->map->sw_data != NULL);
#endif