From eb8ca083c9be574acd27cf0de41d1f69146cad7a Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 11 Dec 2018 00:22:24 +0800 Subject: *misc --- bin/SDL2.dll | Bin 1242112 -> 771072 bytes bin/jin.exe | Bin 1688064 -> 529408 bytes bin/lua51.dll | Bin 364544 -> 364544 bytes build/vc++/3rdparty/SDL2/SDL2.vcxproj | 1 + build/vc++/jin/jin.vcxproj.user | 3 +-- src/3rdparty/LuaJIT-2.0.5/src/buildvm.lib | Bin 33996 -> 33996 bytes src/3rdparty/LuaJIT-2.0.5/src/minilua.lib | Bin 33996 -> 33996 bytes src/libjin/graphics/je_window.cpp | 3 ++- 8 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/SDL2.dll b/bin/SDL2.dll index 80f03c3..cfb64e8 100644 Binary files a/bin/SDL2.dll and b/bin/SDL2.dll differ diff --git a/bin/jin.exe b/bin/jin.exe index e2e90fc..ee85f6b 100644 Binary files a/bin/jin.exe and b/bin/jin.exe differ diff --git a/bin/lua51.dll b/bin/lua51.dll index 7e7acf9..db08400 100644 Binary files a/bin/lua51.dll and b/bin/lua51.dll differ diff --git a/build/vc++/3rdparty/SDL2/SDL2.vcxproj b/build/vc++/3rdparty/SDL2/SDL2.vcxproj index 91570e3..359b967 100644 --- a/build/vc++/3rdparty/SDL2/SDL2.vcxproj +++ b/build/vc++/3rdparty/SDL2/SDL2.vcxproj @@ -126,6 +126,7 @@ StreamingSIMDExtensions true false + Neither true diff --git a/build/vc++/jin/jin.vcxproj.user b/build/vc++/jin/jin.vcxproj.user index 5943b15..de59195 100644 --- a/build/vc++/jin/jin.vcxproj.user +++ b/build/vc++/jin/jin.vcxproj.user @@ -3,8 +3,7 @@ $(ProjectDir)..\..\..\bin WindowsLocalDebugger - - + . $(ProjectDir)..\..\..\bin diff --git a/src/3rdparty/LuaJIT-2.0.5/src/buildvm.lib b/src/3rdparty/LuaJIT-2.0.5/src/buildvm.lib index c7be727..be22bd4 100644 Binary files a/src/3rdparty/LuaJIT-2.0.5/src/buildvm.lib and b/src/3rdparty/LuaJIT-2.0.5/src/buildvm.lib differ diff --git a/src/3rdparty/LuaJIT-2.0.5/src/minilua.lib b/src/3rdparty/LuaJIT-2.0.5/src/minilua.lib index e2b3ac3..1a4ed3f 100644 Binary files a/src/3rdparty/LuaJIT-2.0.5/src/minilua.lib and b/src/3rdparty/LuaJIT-2.0.5/src/minilua.lib differ 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); -- cgit v1.1-26-g67d0