Placate static analysis with an assertion.
This commit is contained in:
parent
8b83017158
commit
beb96e3199
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue