Fixes #1523 by removing inconsistent use of texture->access
authorGabriel Jacobo <gabomdq@gmail.com>
Thu, 21 Jun 2012 11:16:14 -0300
changeset 6337 3c91a153f398
parent 6336 6e6163b6ba69
child 6338 079ecfd1cde7
Fixes #1523 by removing inconsistent use of texture->access
src/render/SDL_render.c
--- 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;
         }