diff --git a/src/renderers/webgl/WebGLTextures.js b/src/renderers/webgl/WebGLTextures.js index a48aeff9dcc1243b00b8a4e27ba662f7085c09db..58de424716d9c11299b16b3fed5443f0e5135a5c 100644 --- a/src/renderers/webgl/WebGLTextures.js +++ b/src/renderers/webgl/WebGLTextures.js @@ -99,8 +99,10 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils, function getInternalFormat( glFormat, glType ) { - if ( _isWebGL2 && glFormat === _gl.RGBA && glType === _gl.FLOAT ) return _gl.RGBA32F; - if ( _isWebGL2 && glFormat === _gl.RGBA && glType === _gl.HALF_FLOAT ) return _gl.RGBA16F; + if ( ! _isWebGL2 ) return glFormat; + + if ( glFormat === _gl.RGBA && glType === _gl.FLOAT ) return _gl.RGBA32F; + if ( glFormat === _gl.RGBA && glType === _gl.HALF_FLOAT ) return _gl.RGBA16F; return glFormat;