From 0fa3dd02e7d4acc5ea33b2284378be6bf6ca055d Mon Sep 17 00:00:00 2001 From: Felix Palmer Date: Fri, 8 Mar 2024 12:18:21 +0100 Subject: [PATCH] Check for WEBGLTextureView, not WEBGLTexture --- modules/webgl/src/adapter/resources/webgl-render-pipeline.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/webgl/src/adapter/resources/webgl-render-pipeline.ts b/modules/webgl/src/adapter/resources/webgl-render-pipeline.ts index 3ed908585d..3c86e130e1 100644 --- a/modules/webgl/src/adapter/resources/webgl-render-pipeline.ts +++ b/modules/webgl/src/adapter/resources/webgl-render-pipeline.ts @@ -463,12 +463,12 @@ export class WEBGLRenderPipeline extends RenderPipeline { texture = value; } else if ( value instanceof WEBGLFramebuffer && - value.colorAttachments[0] instanceof WEBGLTexture + value.colorAttachments[0] instanceof WEBGLTextureView ) { log.warn( 'Passing framebuffer in texture binding may be deprecated. Use fbo.colorAttachments[0] instead' )(); - texture = value.colorAttachments[0]; + texture = value.colorAttachments[0].texture; } else { throw new Error('No texture'); }