diff options
author | Johannes Schickel | 2015-12-18 21:14:48 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-03-16 20:29:25 +0100 |
commit | af727afe0ceb66eaf51985ceceb2ac842b3358ee (patch) | |
tree | 90a7194bb25c83c5a50e25358e340d2a31595d4c /backends/graphics/opengl/opengl-graphics.cpp | |
parent | da062ad1ea2d933ae7c4b56f84f34c5fb2186196 (diff) | |
download | scummvm-rg350-af727afe0ceb66eaf51985ceceb2ac842b3358ee.tar.gz scummvm-rg350-af727afe0ceb66eaf51985ceceb2ac842b3358ee.tar.bz2 scummvm-rg350-af727afe0ceb66eaf51985ceceb2ac842b3358ee.zip |
OPENGL: Simplify context type setting.
Diffstat (limited to 'backends/graphics/opengl/opengl-graphics.cpp')
-rw-r--r-- | backends/graphics/opengl/opengl-graphics.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp index 8db5f6a934..78c6b2aff1 100644 --- a/backends/graphics/opengl/opengl-graphics.cpp +++ b/backends/graphics/opengl/opengl-graphics.cpp @@ -56,7 +56,7 @@ OpenGLGraphicsManager::OpenGLGraphicsManager() #endif { memset(_gamePalette, 0, sizeof(_gamePalette)); - g_context.reset(); + g_context.reset(true); } OpenGLGraphicsManager::~OpenGLGraphicsManager() { @@ -840,9 +840,9 @@ void OpenGLGraphicsManager::setActualScreenSize(uint width, uint height) { ++_screenChangeID; } -void OpenGLGraphicsManager::notifyContextCreate(const Graphics::PixelFormat &defaultFormat, const Graphics::PixelFormat &defaultFormatAlpha, ContextType type) { +void OpenGLGraphicsManager::notifyContextCreate(const Graphics::PixelFormat &defaultFormat, const Graphics::PixelFormat &defaultFormatAlpha) { // Initialize context for use. - initializeGLContext(type); + initializeGLContext(); // Disable 3D properties. GL_CALL(glDisable(GL_CULL_FACE)); |