We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2385467 commit 0e96cb8Copy full SHA for 0e96cb8
player/src/lib.rs
@@ -157,9 +157,11 @@ impl Player {
157
self.external_textures.insert(id, external_texture);
158
}
159
Action::FreeExternalTexture(id) => {
160
+ // Note: external texture remains in the HashMap. "Free" and "Destroy"
161
+ // mean the opposite from WebGPU.
162
let external_texture = self
163
.external_textures
- .remove(&id)
164
+ .get(&id)
165
.expect("invalid external texture");
166
external_texture.destroy();
167
0 commit comments