5d62ef90f2
In a previous PR, I introduced an optimization that used `copy_texture_to_texture` to copy directly from a BitmapData GPU texture to a Stage3D GPU texture. Unfortunately, this optimization is incorrect. A BitmapData GPU texture can be modified at any time by normal AVM2 code - in particular, in might be modified before we submit the encoded `copy_texture_to_texture` command. This shows up in Sniper Team, which re-uses BitmapData objects for multiple distinct textures. The previous 'optimization' resulted in the wrong BitmapData contents getting uploaded to a texture (since it was changed before the copy command was submitted). |
||
---|---|---|
.. | ||
backend | ||
backend.rs | ||
bitmap.rs | ||
commands.rs | ||
error.rs | ||
filters.rs | ||
lib.rs | ||
matrix.rs | ||
quality.rs | ||
shape_utils.rs | ||
tessellator.rs | ||
transform.rs | ||
utils.rs |