From 0a3b840d4ef5fb1894a1b4f486a2dd7f96185e09 Mon Sep 17 00:00:00 2001 From: terminx Date: Tue, 22 Jan 2019 22:51:08 +0000 Subject: [PATCH] Add error message for SDL_SetGammaRamp() failures in videoSetGamma() git-svn-id: https://svn.eduke32.com/eduke32@7316 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/sdlayer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/build/src/sdlayer.cpp b/source/build/src/sdlayer.cpp index 009447341..968391f90 100644 --- a/source/build/src/sdlayer.cpp +++ b/source/build/src/sdlayer.cpp @@ -1863,10 +1863,13 @@ int32_t videoSetGamma(void) */ #endif + OSD_Printf("videoSetGamma(): %s\n", SDL_GetError()); + #ifndef EDUKE32_GLES #if SDL_MAJOR_VERSION == 1 SDL_SetGammaRamp(&sysgamma[0][0], &sysgamma[1][0], &sysgamma[2][0]); #else + if (sdl_window) SDL_SetWindowGammaRamp(sdl_window, &sysgamma[0][0], &sysgamma[1][0], &sysgamma[2][0]); #endif