aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
Diffstat (limited to 'backends')
-rw-r--r--backends/graphics/opengl/context.cpp4
-rw-r--r--backends/graphics/opengl/debug.cpp2
-rw-r--r--backends/graphics/opengl/framebuffer.cpp2
3 files changed, 8 insertions, 0 deletions
diff --git a/backends/graphics/opengl/context.cpp b/backends/graphics/opengl/context.cpp
index a7f640d37e..08f44969a7 100644
--- a/backends/graphics/opengl/context.cpp
+++ b/backends/graphics/opengl/context.cpp
@@ -170,6 +170,10 @@ void OpenGLGraphicsManager::initializeGLContext() {
case kContextGLES2:
debug(5, "OpenGL: GLES2 context initialized");
break;
+
+ default:
+ warning("OpenGL: Unknown context initialized");
+ break;
}
// Log features supported by GL context.
diff --git a/backends/graphics/opengl/debug.cpp b/backends/graphics/opengl/debug.cpp
index c4319f5e36..05228cec34 100644
--- a/backends/graphics/opengl/debug.cpp
+++ b/backends/graphics/opengl/debug.cpp
@@ -45,6 +45,8 @@ Common::String getGLErrStr(GLenum error) {
return "GL_STACK_UNDERFLOW";
case GL_OUT_OF_MEMORY:
return "GL_OUT_OF_MEMORY";
+ default:
+ break;
}
return Common::String::format("(Unknown GL error code 0x%X)", error);
diff --git a/backends/graphics/opengl/framebuffer.cpp b/backends/graphics/opengl/framebuffer.cpp
index 671c448d26..02c913c830 100644
--- a/backends/graphics/opengl/framebuffer.cpp
+++ b/backends/graphics/opengl/framebuffer.cpp
@@ -117,6 +117,8 @@ void Framebuffer::applyBlendState() {
GL_CALL(glEnable(GL_BLEND));
GL_CALL(glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA));
break;
+ default:
+ break;
}
}