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

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
Gabriel Ravier 2020-04-12 01:09:30 +02:00
parent 3f0d8b2e6f
commit 9ad14b897e

View file

@ -109,7 +109,7 @@ static SPRITEBATCH_U64 GlyphBatch_CreateTexture(void *pixels, int w, int h, void
SDL_Texture *texture = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_RGBA32, SDL_TEXTUREACCESS_STATIC, w, h); 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()); Backend_PrintError("Couldn't create texture for renderer: %s", SDL_GetError());
if (SDL_UpdateTexture(texture, NULL, pixels, w * 4) < 0) if (SDL_UpdateTexture(texture, NULL, pixels, w * 4) < 0)