mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-13 13:40:56 +00:00
Merge pull request #134 from Pan7/GammaCheck
SDL_SetWindowGammaRamp check
This commit is contained in:
commit
19fe4f8fbd
1 changed files with 4 additions and 1 deletions
|
@ -88,6 +88,9 @@ void GLimp_SetGamma( unsigned char red[256], unsigned char green[256], unsigned
|
|||
}
|
||||
}
|
||||
|
||||
SDL_SetWindowGammaRamp(SDL_window, table[0], table[1], table[2]);
|
||||
if (SDL_SetWindowGammaRamp(SDL_window, table[0], table[1], table[2]) < 0)
|
||||
{
|
||||
ri.Printf( PRINT_DEVELOPER, "SDL_SetWindowGammaRamp() failed: %s\n", SDL_GetError() );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue