OPENGL: Add Missing Default Switch Cases

These are flagged by GCC if -Wswitch-default is enabled.
This commit is contained in:
D G Turner 2019-10-05 04:54:57 +01:00
parent 07ce549664
commit f6fff71d8d
3 changed files with 8 additions and 0 deletions

View File

@ -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.

View File

@ -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);

View File

@ -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;
}
}