mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
OPENGL: Add Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
This commit is contained in:
parent
07ce549664
commit
f6fff71d8d
@ -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.
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user