Return a valid error in SDL_GL_Bind/UnbindTexture, thank you buildbot!
authorGabriel Jacobo <gabomdq@gmail.com>
Mon, 03 Sep 2012 11:54:48 -0300
changeset 6415 c3893f1bb5f5
parent 6414 df50b0d6c1c3
child 6416 a6bd06626407
Return a valid error in SDL_GL_Bind/UnbindTexture, thank you buildbot!
src/render/SDL_render.c
--- a/src/render/SDL_render.c	Mon Sep 03 11:16:12 2012 -0300
+++ b/src/render/SDL_render.c	Mon Sep 03 11:54:48 2012 -0300
@@ -1386,7 +1386,7 @@
 {
     SDL_Renderer *renderer;
 
-    CHECK_TEXTURE_MAGIC(texture, );
+    CHECK_TEXTURE_MAGIC(texture, -1);
     renderer = texture->renderer;
     if (renderer && renderer->GL_BindTexture) {
         return renderer->GL_BindTexture(renderer, texture, texw, texh);
@@ -1400,7 +1400,7 @@
 {
     SDL_Renderer *renderer;
 
-    CHECK_TEXTURE_MAGIC(texture, );
+    CHECK_TEXTURE_MAGIC(texture, -1);
     renderer = texture->renderer;
     if (renderer && renderer->GL_UnbindTexture) {
         return renderer->GL_UnbindTexture(renderer, texture);