Skip to content
Permalink
Browse files

Changed an error return value from 0 to NULL for consistency.

  • Loading branch information
philippwiesemann committed Aug 21, 2015
1 parent 2d63af8 commit 0856a7ef346e88e3ad23aa201ca760600f05c5ed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/render/SDL_render.c
@@ -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,

0 comments on commit 0856a7e

Please sign in to comment.