Backends/Rendering/SDLTexture: !x
-> x == NULL
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
parent
9ad14b897e
commit
4301fc613e
1 changed files with 1 additions and 1 deletions
|
@ -313,7 +313,7 @@ void RenderBackend_UnlockSurface(RenderBackend_Surface *surface, unsigned int wi
|
|||
|
||||
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());
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue