mirror of
https://github.com/encounter/SDL.git
synced 2025-12-09 21:47:44 +00:00
Placate static analysis with an assertion.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user