mirror of https://github.com/encounter/SDL.git
Placate static analysis with an assertion.
This commit is contained in:
parent
2afa4aeda8
commit
6ae7a20647
|
@ -2055,6 +2055,7 @@ SDL_SetWindowGammaRamp(SDL_Window * window, const Uint16 * red,
|
||||||
if (SDL_GetWindowGammaRamp(window, NULL, NULL, NULL) < 0) {
|
if (SDL_GetWindowGammaRamp(window, NULL, NULL, NULL) < 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
SDL_assert(window->gamma != NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (red) {
|
if (red) {
|
||||||
|
|
Loading…
Reference in New Issue