Backends/Rendering/SDLSurface: !x -> x == NULL

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
Gabriel Ravier 2020-04-12 01:01:38 +02:00
parent 2feba10654
commit a763984486

View file

@ -285,6 +285,6 @@ void RenderBackend_HandleWindowResize(unsigned int width, unsigned int height)
// We need to fetch a new surface pointer
window_sdlsurface = SDL_GetWindowSurface(window);
if (!window_sdlsurface)
if (window_sdlsurface == NULL)
Backend_PrintError("Couldn't get SDL surface for window after resize: %s", SDL_GetError());
}