Commit 6ae7a2064796d38a33c58761b682736899b0b1ff

Ryan C. Gordon 2015-04-10T21:40:50

Placate static analysis with an assertion.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c
index 6e9ac2e..cab98d9 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) {