mirror of
https://github.com/yawut/SDL.git
synced 2026-07-29 14:43:21 -05:00
The dummy renderer can task advantage of the MASK optimization too, though performance probably doesn't matter here...
This commit is contained in:
parent
c4d65a8405
commit
bf0ce2faf3
|
|
@ -466,9 +466,9 @@ SDL_DUMMY_RenderCopy(SDL_Renderer * renderer, SDL_Texture * texture,
|
|||
copydata.flags |= SDL_RENDERCOPY_MODULATE_ALPHA;
|
||||
copydata.a = texture->a;
|
||||
}
|
||||
if (texture->
|
||||
blendMode & (SDL_TEXTUREBLENDMODE_MASK |
|
||||
SDL_TEXTUREBLENDMODE_BLEND)) {
|
||||
if (texture->blendMode & SDL_TEXTUREBLENDMODE_MASK) {
|
||||
copydata.flags |= SDL_RENDERCOPY_MASK;
|
||||
} else if (texture->blendMode & SDL_TEXTUREBLENDMODE_BLEND) {
|
||||
copydata.flags |= SDL_RENDERCOPY_BLEND;
|
||||
} else if (texture->blendMode & SDL_TEXTUREBLENDMODE_ADD) {
|
||||
copydata.flags |= SDL_RENDERCOPY_ADD;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user