From 5106d9e6c8a6bed7b1d84ba45fcf500a04ebf211 Mon Sep 17 00:00:00 2001 From: Mugen87 Date: Mon, 21 Oct 2019 12:05:48 +0200 Subject: [PATCH] WebGLCapabilities: Clean up. --- src/renderers/webgl/WebGLCapabilities.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderers/webgl/WebGLCapabilities.js b/src/renderers/webgl/WebGLCapabilities.js index fb19cf708b..8bda2a522a 100644 --- a/src/renderers/webgl/WebGLCapabilities.js +++ b/src/renderers/webgl/WebGLCapabilities.js @@ -31,7 +31,7 @@ function WebGLCapabilities( gl, extensions, parameters ) { if ( precision === 'highp' ) { if ( gl.getShaderPrecisionFormat( gl.VERTEX_SHADER, gl.HIGH_FLOAT ).precision > 0 && - gl.getShaderPrecisionFormat( gl.FRAGMENT_SHADER, gl.HIGH_FLOAT ).precision > 0 ) { + gl.getShaderPrecisionFormat( gl.FRAGMENT_SHADER, gl.HIGH_FLOAT ).precision > 0 ) { return 'highp'; @@ -44,7 +44,7 @@ function WebGLCapabilities( gl, extensions, parameters ) { if ( precision === 'mediump' ) { if ( gl.getShaderPrecisionFormat( gl.VERTEX_SHADER, gl.MEDIUM_FLOAT ).precision > 0 && - gl.getShaderPrecisionFormat( gl.FRAGMENT_SHADER, gl.MEDIUM_FLOAT ).precision > 0 ) { + gl.getShaderPrecisionFormat( gl.FRAGMENT_SHADER, gl.MEDIUM_FLOAT ).precision > 0 ) { return 'mediump'; @@ -58,7 +58,7 @@ function WebGLCapabilities( gl, extensions, parameters ) { /* eslint-disable no-undef */ var isWebGL2 = ( typeof WebGL2RenderingContext !== 'undefined' && gl instanceof WebGL2RenderingContext ) || - ( typeof WebGL2ComputeRenderingContext !== 'undefined' && gl instanceof WebGL2ComputeRenderingContext ); + ( typeof WebGL2ComputeRenderingContext !== 'undefined' && gl instanceof WebGL2ComputeRenderingContext ); /* eslint-enable no-undef */ var precision = parameters.precision !== undefined ? parameters.precision : 'highp'; -- GitLab