aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/graphics/surfacesdl/surfacesdl-graphics.cpp6
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++;
}