|
@@ -342,6 +342,10 @@ function WebGLState( gl, extensions, paramThreeToGL ) {
|
|
|
|
|
|
var maxTextures = gl.getParameter( gl.MAX_TEXTURE_IMAGE_UNITS );
|
|
|
|
|
|
+ var glVersion = gl.getParameter(gl.VERSION).split(' ')[1];
|
|
|
+ var glMajorVersion = glVersion.split('.').slice(0, 2).join('.');
|
|
|
+ var lineWidthAvailable = parseFloat(glMajorVersion) >= 1.0;
|
|
|
+
|
|
|
var currentTextureSlot = null;
|
|
|
var currentBoundTextures = {};
|
|
|
|
|
@@ -732,7 +736,7 @@ function WebGLState( gl, extensions, paramThreeToGL ) {
|
|
|
|
|
|
if ( width !== currentLineWidth ) {
|
|
|
|
|
|
- gl.lineWidth( width );
|
|
|
+ if ( lineWidthAvailable ) gl.lineWidth( width );
|
|
|
|
|
|
currentLineWidth = width;
|
|
|
|