@@ -24988,7 +24988,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
if ( renderTarget.depthBuffer && ! renderTarget.stencilBuffer ) {
- let glInternalFormat = _gl.DEPTH_COMPONENT16;
+ let glInternalFormat = ( isWebGL2 === true ) ? _gl.DEPTH_COMPONENT24 : _gl.DEPTH_COMPONENT16;
if ( isMultisample || useMultisampledRTT( renderTarget ) ) {
@@ -24993,7 +24993,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
@@ -24986,7 +24986,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,