|
@@ -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';
|