diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-03 02:31:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-03 02:31:07 +0300 |
commit | 6007cebe8ac49ca4f3d09b6bed5e3d41a197221a (patch) | |
tree | a0ff9b7e4a75dca2d62045d8833249aea0f0450b /src/render/graphics.cpp | |
parent | f43602b237228935ca468dc3388db0ab761ddbbb (diff) | |
download | manaverse-6007cebe8ac49ca4f3d09b6bed5e3d41a197221a.tar.gz manaverse-6007cebe8ac49ca4f3d09b6bed5e3d41a197221a.tar.bz2 manaverse-6007cebe8ac49ca4f3d09b6bed5e3d41a197221a.tar.xz manaverse-6007cebe8ac49ca4f3d09b6bed5e3d41a197221a.zip |
Add option for create custom OpenGL context.
By default this option disabled, because may create issues.
Diffstat (limited to 'src/render/graphics.cpp')
-rw-r--r-- | src/render/graphics.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/render/graphics.cpp b/src/render/graphics.cpp index bc08ecfd3..59524d300 100644 --- a/src/render/graphics.cpp +++ b/src/render/graphics.cpp @@ -288,10 +288,10 @@ bool Graphics::setOpenGLMode() restrict2 mRect.w = CAST_S32(w1 / mScale); mRect.h = CAST_S32(h1 / mScale); - createGLContext(); + createGLContext(config.getBoolValue("openglContext")); #else // USE_SDL2 - createGLContext(); + createGLContext(config.getBoolValue("openglContext")); mRect.w = CAST_U16(mWindow->w / mScale); mRect.h = CAST_U16(mWindow->h / mScale); @@ -389,7 +389,7 @@ int Graphics::getSoftwareFlags() const restrict2 } #ifdef USE_OPENGL -void Graphics::createGLContext() restrict2 +void Graphics::createGLContext(const bool custom A_UNUSED) restrict2 { #ifdef USE_SDL2 mGLContext = SDL_GL_CreateContext(mWindow); |