Navigation Menu

Skip to content

Commit

Permalink
Placate static analysis with an assertion.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Apr 11, 2015
1 parent 2afa4ae commit 6ae7a20
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/video/SDL_video.c
Expand Up @@ -2055,6 +2055,7 @@ SDL_SetWindowGammaRamp(SDL_Window * window, const Uint16 * red,
if (SDL_GetWindowGammaRamp(window, NULL, NULL, NULL) < 0) {
return -1;
}
SDL_assert(window->gamma != NULL);
}

if (red) {
Expand Down

0 comments on commit 6ae7a20

Please sign in to comment.