Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Defer init of texture loaders via render_init callback
The texture loaders depend on being able to query a `RenderDevice` for supported compressed texture formats, and if no device is found they (silently) fallback to assuming `all()` formats are supported. This moves the initialization of the `ImageTextureLoader` and `HdrTextureLoader` asset loaders into the `.add_render_init()` callback in `ImagePlugin::build()` to ensure they are only initialized after the `RenderDevice` has been created. Tested with `examples/3d/texture.rs`
- Loading branch information