src/render/SDL_render.c
changeset 6337 3c91a153f398
parent 6320 6077a1310907
child 6389 43a190ad60a7
--- a/src/render/SDL_render.c	Thu Jun 21 09:58:22 2012 -0400
+++ b/src/render/SDL_render.c	Thu Jun 21 11:16:14 2012 -0300
@@ -881,7 +881,7 @@
             SDL_SetError("Texture was not created with this renderer");
             return -1;
         }
-        if (!(texture->access & SDL_TEXTUREACCESS_TARGET)) {
+        if (texture->access != SDL_TEXTUREACCESS_TARGET) {
             SDL_SetError("Texture not created with SDL_TEXTUREACCESS_TARGET");
             return -1;
         }