ref: 9ad14b897e1473670dc5de69e566d22ecbb0e19c
parent: 3f0d8b2e6f55cc49bee4835266fe37ea211381e4
author: Gabriel Ravier <gabravier@gmail.com>
date: Sat Apr 11 21:09:30 EDT 2020
Backends/Rendering/SDLTexture: `!x` -> `x == NULL` Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
--- a/src/Backends/Rendering/SDLTexture.cpp
+++ b/src/Backends/Rendering/SDLTexture.cpp
@@ -109,7 +109,7 @@
SDL_Texture *texture = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_RGBA32, SDL_TEXTUREACCESS_STATIC, w, h);
- if (!texture)
+ if (texture == NULL)
Backend_PrintError("Couldn't create texture for renderer: %s", SDL_GetError());
if (SDL_UpdateTexture(texture, NULL, pixels, w * 4) < 0)