Don't compare pointer against '0', but NULL
This commit is contained in:
parent
1d7966df15
commit
ce5da5d579
14 changed files with 21 additions and 21 deletions
|
@ -117,7 +117,7 @@ initializeTexture(SDL_Renderer *renderer)
|
|||
|
||||
/* convert RGBA surface to texture */
|
||||
texture = SDL_CreateTextureFromSurface(renderer, bmp_surface);
|
||||
if (texture == 0) {
|
||||
if (!texture) {
|
||||
fatalError("could not create texture");
|
||||
}
|
||||
SDL_SetTextureBlendMode(texture, SDL_BLENDMODE_BLEND);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue