mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-13 22:02:15 +00:00
GPU: discard_kept is public like clear_uploads, so wasm builds don't flag it unused (refs #1319)
This commit is contained in:
1 parent
babdcd3b9f
commit
1b3a70a7bc
1 file changed
+1
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user