diff options
Diffstat (limited to 'src/sdl/sdl_gamma.c')
-rw-r--r-- | src/sdl/sdl_gamma.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sdl/sdl_gamma.c b/src/sdl/sdl_gamma.c index 0925a1a2..0029db18 100644 --- a/src/sdl/sdl_gamma.c +++ b/src/sdl/sdl_gamma.c @@ -30,6 +30,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include "../renderercommon/tr_common.h" #include "../qcommon/qcommon.h" +extern SDL_Window *SDL_window; + /* ================= GLimp_SetGamma @@ -87,6 +89,6 @@ void GLimp_SetGamma( unsigned char red[256], unsigned char green[256], unsigned } } - SDL_SetGammaRamp(table[0], table[1], table[2]); + SDL_SetWindowGammaRamp(SDL_window, table[0], table[1], table[2]); } |