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:10:15 +02:00
parent 9ad14b897e
commit 4301fc613e

View file

@ -313,7 +313,7 @@ void RenderBackend_UnlockSurface(RenderBackend_Surface *surface, unsigned int wi
unsigned char *buffer = (unsigned char*)malloc(width * height * 4); unsigned char *buffer = (unsigned char*)malloc(width * height * 4);
if (!buffer) if (buffer == NULL)
{ {
Backend_PrintError("Couldn't allocate memory for surface buffer: %s", SDL_GetError()); Backend_PrintError("Couldn't allocate memory for surface buffer: %s", SDL_GetError());
return; return;