Skip to content

EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust

GPU: discard_kept is public like clear_uploads, so wasm builds don't flag it unused (refs #1319)

tylerjenningsw1b3a70a7bc93
diff --git a/crates/gpu/src/context.rs b/crates/gpu/src/context.rs
index 9e3d98365..e220a146b 100644
--- a/crates/gpu/src/context.rs
+++ b/crates/gpu/src/context.rs
@@ -983,7 +983,7 @@ impl GpuContext {
/// After a failed frame: forget every texture and buffer kept for reuse, since any of them
/// may be one the device rejected (#1319). Later frames allocate afresh.
- pub(crate) fn discard_kept(&self) {
+ pub fn discard_kept(&self) {
self.clear_uploads();
if let Ok(mut z) = self.zeros.lock() {
z.clear();