diff options
| author | Alejandro Marzini | 2010-07-15 04:01:41 +0000 | 
|---|---|---|
| committer | Alejandro Marzini | 2010-07-15 04:01:41 +0000 | 
| commit | 9ef2fc4744f88837c63150b09655ae3e51023b7e (patch) | |
| tree | 0da80d52789b9cc4251c5df3e8bbb5b0707d44f5 /backends/graphics/sdl | |
| parent | d677ba5a1146ae48c0831e1056350d3efa2e43fd (diff) | |
| download | scummvm-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.cpp | 3 | 
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  | 
