The dummy renderer can task advantage of the MASK optimization too, though performance probably doesn't matter here...
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402037
This commit is contained in:
parent
04b633b920
commit
1b733db29c
1 changed files with 3 additions and 3 deletions
|
@ -466,9 +466,9 @@ SDL_DUMMY_RenderCopy(SDL_Renderer * renderer, SDL_Texture * texture,
|
||||||
copydata.flags |= SDL_RENDERCOPY_MODULATE_ALPHA;
|
copydata.flags |= SDL_RENDERCOPY_MODULATE_ALPHA;
|
||||||
copydata.a = texture->a;
|
copydata.a = texture->a;
|
||||||
}
|
}
|
||||||
if (texture->
|
if (texture->blendMode & SDL_TEXTUREBLENDMODE_MASK) {
|
||||||
blendMode & (SDL_TEXTUREBLENDMODE_MASK |
|
copydata.flags |= SDL_RENDERCOPY_MASK;
|
||||||
SDL_TEXTUREBLENDMODE_BLEND)) {
|
} else if (texture->blendMode & SDL_TEXTUREBLENDMODE_BLEND) {
|
||||||
copydata.flags |= SDL_RENDERCOPY_BLEND;
|
copydata.flags |= SDL_RENDERCOPY_BLEND;
|
||||||
} else if (texture->blendMode & SDL_TEXTUREBLENDMODE_ADD) {
|
} else if (texture->blendMode & SDL_TEXTUREBLENDMODE_ADD) {
|
||||||
copydata.flags |= SDL_RENDERCOPY_ADD;
|
copydata.flags |= SDL_RENDERCOPY_ADD;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue