mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-19 22:09:37 +00:00
fix: validate FBO completeness after attachment
Amp-Thread-ID: https://ampcode.com/threads/T-019cbc6d-818c-7027-917e-7194d9c8a50e
This commit is contained in:
@@ -115,6 +115,9 @@ export function useGLSLRenderer(config: GLSLRendererConfig = DEFAULT_CONFIG) {
|
||||
tex,
|
||||
0
|
||||
)
|
||||
const status = ctx.checkFramebufferStatus(ctx.FRAMEBUFFER)
|
||||
if (status !== ctx.FRAMEBUFFER_COMPLETE)
|
||||
throw new Error(`Ping-pong framebuffer incomplete: ${status}`)
|
||||
|
||||
fbos.push(fbo)
|
||||
textures.push(tex)
|
||||
|
||||
Reference in New Issue
Block a user