Skip to content

Commit

Permalink
Merge pull request #13605 from takahirox/CleanUpWebGLState
Browse files Browse the repository at this point in the history
WebGLState minor clean up
  • Loading branch information
mrdoob committed Mar 15, 2018
2 parents ba7b93c + 6fc1510 commit 87f4134
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/renderers/webgl/WebGLState.js
Expand Up @@ -348,13 +348,13 @@ function WebGLState( gl, extensions, utils ) {

if ( glVersion.indexOf( 'WebGL' ) !== - 1 ) {

version = parseFloat( /^WebGL\ ([0-9])/.exec( glVersion )[ 1 ] );
lineWidthAvailable = ( version >= 1.0 );
version = parseFloat( /^WebGL\ ([0-9])/.exec( glVersion )[ 1 ] );
lineWidthAvailable = ( version >= 1.0 );

} else if ( glVersion.indexOf( 'OpenGL ES' ) !== - 1 ) {

version = parseFloat( /^OpenGL\ ES\ ([0-9])/.exec( glVersion )[ 1 ] );
lineWidthAvailable = ( version >= 2.0 );
version = parseFloat( /^OpenGL\ ES\ ([0-9])/.exec( glVersion )[ 1 ] );
lineWidthAvailable = ( version >= 2.0 );

}

Expand Down

0 comments on commit 87f4134

Please sign in to comment.