Move to globals SDL vars
This commit is contained in:
@@ -159,8 +159,6 @@ void SetMouseCursor(SDL_SystemCursor id) {
|
||||
}
|
||||
}
|
||||
#else
|
||||
SDL_Cursor *SDL_MouseCursor;
|
||||
SDL_SystemCursor SDL_MouseCursorLastID;
|
||||
void SetMouseCursor(SDL_SystemCursor id) {
|
||||
if (SDL_MouseCursor == NULL || SDL_MouseCursorLastID != id) {
|
||||
if (SDL_MouseCursor != NULL) {
|
||||
@@ -1014,8 +1012,8 @@ int main(int argc, char **argv, char **envp)
|
||||
}
|
||||
SDL_SetWindowPosition(SDLWindow, xhalf, yhalf);
|
||||
|
||||
SDL_GLContext gl_context = SDL_GL_CreateContext(SDLWindow);
|
||||
SDL_GL_MakeCurrent(SDLWindow, gl_context);
|
||||
SDL_WindowGLContext = SDL_GL_CreateContext(SDLWindow);
|
||||
SDL_GL_MakeCurrent(SDLWindow, SDL_WindowGLContext);
|
||||
SDL_ShowWindow(SDLWindow);
|
||||
|
||||
// Set icon
|
||||
|
||||
Reference in New Issue
Block a user