Backends/Rendering/SDLTexture: !x
-> x == NULL
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
parent
3f0d8b2e6f
commit
9ad14b897e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue