From 6ae7a2064796d38a33c58761b682736899b0b1ff Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 10 Apr 2015 21:40:50 -0400 Subject: [PATCH] Placate static analysis with an assertion. --- src/video/SDL_video.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index 6e9ac2ead..cab98d9de 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -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) {