Skip to content

Commit

Permalink
SDL_SetWindowGammaRamp check
Browse files Browse the repository at this point in the history
  • Loading branch information
Pan7 committed Jul 26, 2015
1 parent 605dfab commit 2003a05
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/sdl/sdl_gamma.c
Expand Up @@ -88,6 +88,9 @@ void GLimp_SetGamma( unsigned char red[256], unsigned char green[256], unsigned
}
}

SDL_SetWindowGammaRamp(SDL_window, table[0], table[1], table[2]);
if (SDL_SetWindowGammaRamp(SDL_window, table[0], table[1], table[2]) < 0)
{
ri.Printf( PRINT_DEVELOPER, "SDL_SetWindowGammaRamp() failed.\n" );
}
}

0 comments on commit 2003a05

Please sign in to comment.