Changed an error return value from 0 to NULL for consistency.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Fri, 21 Aug 2015 23:50:37 +0200
changeset 9849 1305bfa0214e
parent 9848 7c157f4b3228
child 9850 dba168c67bea
Changed an error return value from 0 to NULL for consistency.
src/render/SDL_render.c
--- a/src/render/SDL_render.c	Fri Aug 21 00:19:36 2015 -0300
+++ b/src/render/SDL_render.c	Fri Aug 21 23:50:37 2015 +0200
@@ -457,7 +457,7 @@
     if (IsSupportedFormat(renderer, format)) {
         if (renderer->CreateTexture(renderer, texture) < 0) {
             SDL_DestroyTexture(texture);
-            return 0;
+            return NULL;
         }
     } else {
         texture->native = SDL_CreateTexture(renderer,