From 15fdbb2a8344c38e06a1754bfc05eaa3948fa065 Mon Sep 17 00:00:00 2001 From: Christian Uhsat Date: Sun, 27 Sep 2015 20:38:32 +0200 Subject: [PATCH] Hide mouse cursor early --- es-core/src/Renderer_init_sdlgl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/es-core/src/Renderer_init_sdlgl.cpp b/es-core/src/Renderer_init_sdlgl.cpp index 00175f3fc..ab0bfb56a 100644 --- a/es-core/src/Renderer_init_sdlgl.cpp +++ b/es-core/src/Renderer_init_sdlgl.cpp @@ -36,6 +36,9 @@ namespace Renderer return false; } + //hide mouse cursor early + initialCursorState = SDL_ShowCursor(0) == 1; + SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8); SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8); SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8); @@ -108,9 +111,6 @@ namespace Renderer LOG(LogWarning) << "Tried to enable vsync, but failed! (" << SDL_GetError() << ")"; } - //hide mouse cursor - initialCursorState = SDL_ShowCursor(0) == 1; - return true; }