Placate static analysis with an assertion.

This commit is contained in:
Ryan C. Gordon 2015-04-10 21:40:50 -04:00
parent 2afa4aeda8
commit 6ae7a20647

View File

@ -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) {