[Scummvm-git-logs] scummvm master -> 9cf5ebecdfd2801518483da13321fe3b9035f087
sev-
sev at scummvm.org
Sun Mar 5 00:44:53 CET 2017
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
9cf5ebecdf BACKENDS: Fix crash on startup
Commit: 9cf5ebecdfd2801518483da13321fe3b9035f087
https://github.com/scummvm/scummvm/commit/9cf5ebecdfd2801518483da13321fe3b9035f087
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2017-03-05T00:43:49+01:00
Commit Message:
BACKENDS: Fix crash on startup
Changed paths:
backends/graphics/surfacesdl/surfacesdl-graphics.cpp
diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
index 4eb63fd..2b31e90 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++;
}
More information about the Scummvm-git-logs
mailing list