Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixes #1523 by removing inconsistent use of texture->access
Browse files Browse the repository at this point in the history
  • Loading branch information
gabomdq committed Jun 21, 2012
1 parent 5d64984 commit c57325e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/SDL_render.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit c57325e

Please sign in to comment.