aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/graphics/je_window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin/graphics/je_window.cpp')
-rw-r--r--src/libjin/graphics/je_window.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libjin/graphics/je_window.cpp b/src/libjin/graphics/je_window.cpp
index e7cdf06..6572304 100644
--- a/src/libjin/graphics/je_window.cpp
+++ b/src/libjin/graphics/je_window.cpp
@@ -56,6 +56,7 @@ namespace JinEngine
SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
+ SDL_GL_SetAttribute(SDL_GL_RETAINED_BACKING, 0);
int wx = SDL_WINDOWPOS_UNDEFINED,
wy = SDL_WINDOWPOS_UNDEFINED;
@@ -82,7 +83,7 @@ namespace JinEngine
} catch (...) {}
ctx = SDL_GL_CreateContext(mWnd);
- if (ctx == NULL)
+ if (ctx == NULL)
return false;
SDL_GL_SetSwapInterval(vsync ? 1 : 0);
SDL_GL_MakeCurrent(mWnd, ctx);