multigpu: Fix storing of copied textures.
Previously we were accidentally storing an `Option<TextureType>`
instead of a `TextureType` inside our AnyMap, resulting in being
unable to retrieve the textures later as the types didn't match up.
This commit fixes this and just stores nothing in case of an error.
@@ -1581,7 +1581,9 @@ where
} else {
None
};
+ if let Some(new_texture) = new_texture {
tex.texture = Some(Box::new(new_texture) as Box<_>);
+ }
} else {
// update
let texture = <dyn Any>::downcast_ref::<
