ruffle/render/webgl
Aaron Hill 173a1a80cb Fix BitmapHandle downcasting in webgl and canvas backends
There were two issues:
1. We were accidentally calling `as_any` on `handle,` rather than
   `handle.0`
2. Calling `as_any` can invoke the wrong implementation, depending on
   what traits are in scope. We want the method implemented on the
   underlying type (`RegistryData`) to be used, but if `Downcast` is
   explicitly imported, then we appear to invoke it on the trait object
   `dyn BitmapHandleImpl` itself (using the fact that trait objects
   themselves implement `Any`). We now explicitly call the generated
   method on the trait object, which avoids this issue.
2022-12-04 14:53:00 -06:00
..
shaders webgl: Remove dead `u_num_colors` 2022-10-03 22:38:38 +03:00
src Fix BitmapHandle downcasting in webgl and canvas backends 2022-12-04 14:53:00 -06:00
Cargo.toml core: Make `BitmapHandle` hold a trait object instead of an id 2022-12-03 19:44:44 -06:00