• Philipp Kutin's avatar
    sdlayer.cpp: don't print SDL_SetWindowGammaRamp() error if the function was not called. · 64ea64d8
    Philipp Kutin authored
    We may have gotten an error message like:
      videoSetGamma(): Failed loading udev_device_get_action:
          (...)/libSDL2-2.0.so.0: 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.)
sdlayer.cpp 65 KB