diff options
author | Eugene Sandulenko | 2017-03-05 00:43:49 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-03-05 00:43:49 +0100 |
commit | 9cf5ebecdfd2801518483da13321fe3b9035f087 (patch) | |
tree | 1bdc3fcebaee6fd1c063f58a805e6fee84da41c9 /backends | |
parent | adb6a395e498a10dfafc415c5a9b9d7501e5e0de (diff) | |
download | scummvm-rg350-9cf5ebecdfd2801518483da13321fe3b9035f087.tar.gz scummvm-rg350-9cf5ebecdfd2801518483da13321fe3b9035f087.tar.bz2 scummvm-rg350-9cf5ebecdfd2801518483da13321fe3b9035f087.zip |
BACKENDS: Fix crash on startup
Diffstat (limited to 'backends')
-rw-r--r-- | backends/graphics/surfacesdl/surfacesdl-graphics.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp index 4eb63fd303..2b31e90352 100644 --- a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp +++ b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp @@ -200,11 +200,13 @@ SurfaceSdlGraphicsManager::SurfaceSdlGraphicsManager(SdlEventSource *sdlEventSou _videoMode.filtering = ConfMan.getBool("filtering"); #endif - if (g_system->hasFeature(OSystem::kFeatureShader)) { + // Default backend does not have shaders. Disable check. + // TODO: Implement more elegant way. + if (0 && g_system->hasFeature(OSystem::kFeatureShader)) { // shader number 0 is the entry NONE (no shader) const OSystem::GraphicsMode *p = s_supportedShaders; _numShaders = 0; - while (p->name) { + while (p->name) { _numShaders++; p++; } |