2
0
Эх сурвалжийг харах

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

Michael Herzog 1 жил өмнө
parent
commit
8c55e3e14f

+ 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 ] );