mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-27 22:42:09 +00:00
Merge pull request #138 from Pan7/SDL_Swap
SDL_GL_SetSwapInterval() check
This commit is contained in:
commit
db941dcb5f
1 changed files with 4 additions and 1 deletions
|
@ -487,7 +487,10 @@ static int GLimp_SetMode(int mode, qboolean fullscreen, qboolean noborder)
|
|||
qglClear( GL_COLOR_BUFFER_BIT );
|
||||
SDL_GL_SwapWindow( SDL_window );
|
||||
|
||||
SDL_GL_SetSwapInterval( r_swapInterval->integer );
|
||||
if( SDL_GL_SetSwapInterval( r_swapInterval->integer ) == -1 )
|
||||
{
|
||||
ri.Printf( PRINT_DEVELOPER, "SDL_GL_SetSwapInterval failed: %s\n", SDL_GetError( ) );
|
||||
}
|
||||
|
||||
glConfig.colorBits = testColorBits;
|
||||
glConfig.depthBits = testDepthBits;
|
||||
|
|
Loading…
Reference in a new issue