fix(viewer): harden WebGPU slab recovery (#518)

Co-authored-by: Connor Soohoo <connorsoohoo@users.noreply.github.com>
This commit is contained in:
Aymeric Rabot
2026-07-19 17:58:53 +02:00
committed by GitHub
co-authored by Connor Soohoo
parent a7734b8ffe
commit 87f3952e4d
3 changed files with 37 additions and 1 deletions
@@ -755,6 +755,8 @@ const PostProcessingPasses = ({
}
} catch (error) {
hasPipelineErrorRef.current = true
// A failed MRT pass may leave its target bound; clear it before the fallback render.
;(renderer as any).setRenderTarget?.(null)
console.error('[viewer/post-processing] Render pass failed.', {
retryCount: retryCountRef.current,
rendererCtor: (renderer as any).constructor?.name,