X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FOpenGL_Windows.cpp;h=433b8d134e55d0b25236cafa21889712b92895e6;hb=96d8c5b7fe4008d8335be04666b60a92db63d2f6;hp=d74b557c4aeb66f87a6f046389e9812d2792dca6;hpb=fa2ead2f5252e9061cc7a7ac5d5d25f4445f6ad5;p=lugaru.git diff --git a/Source/OpenGL_Windows.cpp b/Source/OpenGL_Windows.cpp index d74b557..433b8d1 100644 --- a/Source/OpenGL_Windows.cpp +++ b/Source/OpenGL_Windows.cpp @@ -410,9 +410,8 @@ Boolean SetUp () SDL_GL_SetSwapInterval(1); SDL_ShowCursor(0); - SDL_SetWindowGrab(sdlwindow, SDL_TRUE); - SDL_SetRelativeMouseMode(SDL_TRUE); - + if (!cmdline("nomousegrab")) + SDL_SetRelativeMouseMode(SDL_TRUE); initGL();