ruffle/render
Aaron Hill 5d62ef90f2 wgpu: Use intermediate buffer for Context3DCommand::CopyBitmapToTexture
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).
2023-05-20 17:38:26 -05:00
..
canvas fix(deps): update wasm-bindgen 2023-05-17 06:44:50 +03:00
naga-agal agal: Implement Float1 to vec4f conversion 2023-05-18 16:12:22 -05:00
src wgpu: Use intermediate buffer for Context3DCommand::CopyBitmapToTexture 2023-05-20 17:38:26 -05:00
webgl fix(deps): update wasm-bindgen 2023-05-17 06:44:50 +03:00
wgpu wgpu: Use intermediate buffer for Context3DCommand::CopyBitmapToTexture 2023-05-20 17:38:26 -05:00
Cargo.toml fix(deps): update wasm-bindgen 2023-05-17 06:44:50 +03:00