Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions es-core/src/Renderer_init_sdlgl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}

Expand Down