SDL_SetWindowGammaRamp check

This commit is contained in:
Pan7 2015-07-26 04:31:27 +02:00
parent 605dfabb94
commit 2003a054f9

View file

@ -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.\n" );
}
} }