Skip to content

Commit

Permalink
Changed an error return value from 0 to NULL for consistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed Aug 21, 2015
1 parent 2d63af8 commit 0856a7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/SDL_render.c
Expand Up @@ -457,7 +457,7 @@ SDL_CreateTexture(SDL_Renderer * renderer, Uint32 format, int access, int w, int
if (IsSupportedFormat(renderer, format)) {
if (renderer->CreateTexture(renderer, texture) < 0) {
SDL_DestroyTexture(texture);
return 0;
return NULL;
}
} else {
texture->native = SDL_CreateTexture(renderer,
Expand Down

0 comments on commit 0856a7e

Please sign in to comment.