You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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`
0 commit comments