Skip to content

Commit

Permalink
BACKENDS: Fix crash on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Mar 4, 2017
1 parent adb6a39 commit 9cf5ebe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions backends/graphics/surfacesdl/surfacesdl-graphics.cpp
Expand Up @@ -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++;
}
Expand Down

0 comments on commit 9cf5ebe

Please sign in to comment.