Fixes #1523 by removing inconsistent use of texture->access
authorGabriel Jacobo
Thu, 21 Jun 2012 11:16:14 -0300
changeset 63373c91a153f398
parent 6336 6e6163b6ba69
child 6338 079ecfd1cde7
Fixes #1523 by removing inconsistent use of texture->access
src/render/SDL_render.c
     1.1 --- a/src/render/SDL_render.c	Thu Jun 21 09:58:22 2012 -0400
     1.2 +++ b/src/render/SDL_render.c	Thu Jun 21 11:16:14 2012 -0300
     1.3 @@ -881,7 +881,7 @@
     1.4              SDL_SetError("Texture was not created with this renderer");
     1.5              return -1;
     1.6          }
     1.7 -        if (!(texture->access & SDL_TEXTUREACCESS_TARGET)) {
     1.8 +        if (texture->access != SDL_TEXTUREACCESS_TARGET) {
     1.9              SDL_SetError("Texture not created with SDL_TEXTUREACCESS_TARGET");
    1.10              return -1;
    1.11          }