Skip to content
Permalink
Browse files

BACKENDS: Fix crash on startup

  • Loading branch information
sev- committed Mar 4, 2017
1 parent adb6a39 commit 9cf5ebecdfd2801518483da13321fe3b9035f087
Showing with 4 additions and 2 deletions.
  1. +4 −2 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++;
}

0 comments on commit 9cf5ebe

Please sign in to comment.
You can’t perform that action at this time.