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

This commit is contained in:
tylerjenningsw
2026-10-13 13:43:33 -04:00
parent babdcd3b9f
commit 1b3a70a7bc
+1 -1
View File
@@ -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();