浏览代码

WebGLTextures: Fix `gl.invalidateFramebuffer()` call. (#28139)

Michael Herzog 1 年之前
父节点
当前提交
8c55e3e14f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/renderers/webgl/WebGLTextures.js

+ 1 - 1
src/renderers/webgl/WebGLTextures.js

@@ -1892,7 +1892,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
 
 					}
 
-					if ( ignoreDepthValues === true ) {
+					if ( ignoreDepthValues === true && supportsInvalidateFramebuffer ) {
 
 						_gl.invalidateFramebuffer( _gl.READ_FRAMEBUFFER, [ depthStyle ] );
 						_gl.invalidateFramebuffer( _gl.DRAW_FRAMEBUFFER, [ depthStyle ] );