diff options
Diffstat (limited to 'src/sdl')
-rw-r--r-- | src/sdl/sdl_glimp.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/sdl/sdl_glimp.c b/src/sdl/sdl_glimp.c index 34d24a15..1c0f0194 100644 --- a/src/sdl/sdl_glimp.c +++ b/src/sdl/sdl_glimp.c @@ -47,7 +47,7 @@ typedef enum } rserr_t; SDL_Window *SDL_window = NULL; -static SDL_GLContext *SDL_glContext = NULL; +static SDL_GLContext SDL_glContext = NULL; cvar_t *r_allowSoftwareGL; // Don't abort out if a hardware visual can't be obtained cvar_t *r_allowResize; // make window resizable @@ -107,8 +107,8 @@ GLimp_CompareModes static int GLimp_CompareModes( const void *a, const void *b ) { const float ASPECT_EPSILON = 0.001f; - SDL_Rect *modeA = (SDL_Rect *)&a; - SDL_Rect *modeB = (SDL_Rect *)&b; + SDL_Rect *modeA = (SDL_Rect *)a; + SDL_Rect *modeB = (SDL_Rect *)b; float aspectA = (float)modeA->w / (float)modeA->h; float aspectB = (float)modeB->w / (float)modeB->h; int areaA = modeA->w * modeA->h; @@ -463,12 +463,6 @@ static int GLimp_SetMode( qboolean failSafe, qboolean fullscreen, qboolean nobor continue; } - if( SDL_GL_MakeCurrent( SDL_window, SDL_glContext ) < 0 ) - { - ri.Printf( PRINT_DEVELOPER, "SDL_GL_MakeCurrent failed: %s\n", SDL_GetError( ) ); - continue; - } - SDL_GL_SetSwapInterval( r_swapInterval->integer ); glConfig.colorBits = testColorBits; |