Commit 64ea64d8 authored by Philipp Kutin's avatar Philipp Kutin Committed by Richard Gobeille

sdlayer.cpp: don't print SDL_SetWindowGammaRamp() error if the function was not called.

We may have gotten an error message like:

  videoSetGamma(): Failed loading udev_device_get_action:
      (...)/ undefined symbol: _udev_device_get_action

 1. The "error" in question did actually happen earlier in SDL, but is harmless
    because SDL first tries to load a symbol using 'dlsym(RTLD_DEFAULT, ...)' and
    failing that (as it happens in my case), from an explicitly loaded libudev
    (which succeeds).
 2. The message misleads a user into thinking that it may have something to do
    with gamma adjustment having no effect. (As is the case for me.)
parent c18af2a1
......@@ -1994,7 +1994,7 @@ int32_t videoSetGamma(void)
initprintf("Unable to set gamma: SDL_SetWindowGammaRamp failed: %s\n", SDL_GetError());
if (i != INT32_MIN)
OSD_Printf("videoSetGamma(): %s\n", SDL_GetError());
#ifndef EDUKE32_GLES
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment