Merge pull request #134 from Pan7/GammaCheck

SDL_SetWindowGammaRamp check
This commit is contained in:
Tim Angus 2015-07-26 15:49:42 +01:00
commit 19fe4f8fbd

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: %s\n", SDL_GetError() );
}
}