mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-11 05:48:13 +00:00
Don't compare pointer against '0', but NULL
This commit is contained in:
@@ -63,7 +63,7 @@ initializeTexture(SDL_Renderer *renderer)
|
||||
brush =
|
||||
SDL_CreateTextureFromSurface(renderer, bmp_surface);
|
||||
SDL_FreeSurface(bmp_surface);
|
||||
if (brush == 0) {
|
||||
if (!brush) {
|
||||
fatalError("could not create brush texture");
|
||||
}
|
||||
/* additive blending -- laying strokes on top of eachother makes them brighter */
|
||||
|
Reference in New Issue
Block a user