mirror of
https://github.com/yawut/SDL.git
synced 2026-04-25 15:58:04 -05:00
Fixes #1523 by removing inconsistent use of texture->access
This commit is contained in:
parent
c69811e85e
commit
a1de587006
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user