mirror of
https://github.com/storytold/effectcraft.git
synced 2026-10-30 13:08:07 -06:00
GPU: discard_kept is public like clear_uploads, so wasm builds don't flag it unused (refs #1319)
This commit is contained in:
@@ -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