Commit 0856a7ef346e88e3ad23aa201ca760600f05c5ed

Philipp Wiesemann 2015-08-21T23:50:37

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

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/render/SDL_render.c b/src/render/SDL_render.c
index 088fe7c..f00688b 100644
--- a/src/render/SDL_render.c
+++ b/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,