Fixes #1523 by removing inconsistent use of texture->access

This commit is contained in:
Gabriel Jacobo 2012-06-21 11:16:14 -03:00
parent c69811e85e
commit a1de587006

View File

@ -881,7 +881,7 @@ SDL_SetRenderTarget(SDL_Renderer *renderer, SDL_Texture *texture)
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;
}