diff options
author | chai <chaifix@163.com> | 2018-12-11 00:22:24 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-12-11 00:22:24 +0800 |
commit | eb8ca083c9be574acd27cf0de41d1f69146cad7a (patch) | |
tree | 98d61790bf973769d9340401eb33f7f07e64ccbb /src/libjin/graphics/je_window.cpp | |
parent | 2423f7add9243f75b636c82ed439847ec3229773 (diff) |
*misc
Diffstat (limited to 'src/libjin/graphics/je_window.cpp')
-rw-r--r-- | src/libjin/graphics/je_window.cpp | 3 |
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); |