ruffle/render/webgl
Aaron Hill bdadb17a95 render: Don't use BitmapHandle in tessellator
Currently, we rely on ShapeTessellator being able to get a BitmapHandle
without a RenderBackend. With the upcoming BitmapData refactor,
we will always need a RenderBackend to get a BitmapHandle, which creates
borrow-checker issues in ShapeTessellator (which is stored in a
RenderBackend).

To solve this, we split BitmapSource.bitmap into two methods -
BitmapSource.bitmap and BitmapSource.bitmap_handle. ShapeTessellator
continues to use BitmapSource.bitmap, and uses the u16 bitmap id
instead of a BitmapHandle. The BitmapSource.bitmap_handle method
is used inside each render backend to convert the id to a BitmapHandle,
avoiding borrow-checker issues.
2022-11-21 21:04:40 -07:00
..
shaders webgl: Remove dead `u_num_colors` 2022-10-03 22:38:38 +03:00
src render: Don't use BitmapHandle in tessellator 2022-11-21 21:04:40 -07:00
Cargo.toml build(deps): bump bytemuck from 1.12.2 to 1.12.3 2022-11-07 22:32:10 +02:00