wgpu: Clear out texture pool when resized

This commit is contained in:
Nathan Adams 2022-12-27 19:31:54 +01:00
parent cb6d72b49b
commit a657feadae
1 changed files with 1 additions and 0 deletions

View File

@ -250,6 +250,7 @@ impl<T: RenderTarget + 'static> RenderBackend for WgpuRenderBackend<T> {
);
self.viewport_scale_factor = dimensions.scale_factor;
self.texture_pool = TexturePool::new();
}
fn create_context3d(