fix(viewer): harden WebGPU slab recovery (#518)
Co-authored-by: Connor Soohoo <connorsoohoo@users.noreply.github.com>
This commit is contained in:
co-authored by
Connor Soohoo
parent
a7734b8ffe
commit
87f3952e4d
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user