mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Add error message for SDL_SetGammaRamp() failures in videoSetGamma()
git-svn-id: https://svn.eduke32.com/eduke32@7316 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
8098d04875
commit
0a3b840d4e
1 changed files with 3 additions and 0 deletions
|
@ -1863,10 +1863,13 @@ int32_t videoSetGamma(void)
|
||||||
*/
|
*/
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
OSD_Printf("videoSetGamma(): %s\n", SDL_GetError());
|
||||||
|
|
||||||
#ifndef EDUKE32_GLES
|
#ifndef EDUKE32_GLES
|
||||||
#if SDL_MAJOR_VERSION == 1
|
#if SDL_MAJOR_VERSION == 1
|
||||||
SDL_SetGammaRamp(&sysgamma[0][0], &sysgamma[1][0], &sysgamma[2][0]);
|
SDL_SetGammaRamp(&sysgamma[0][0], &sysgamma[1][0], &sysgamma[2][0]);
|
||||||
#else
|
#else
|
||||||
|
|
||||||
if (sdl_window)
|
if (sdl_window)
|
||||||
SDL_SetWindowGammaRamp(sdl_window, &sysgamma[0][0], &sysgamma[1][0], &sysgamma[2][0]);
|
SDL_SetWindowGammaRamp(sdl_window, &sysgamma[0][0], &sysgamma[1][0], &sysgamma[2][0]);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue