From 65b20bcde9717cd94bd64f1680aefa1b8118d15b Mon Sep 17 00:00:00 2001 From: 06wj <06wj@163.com> Date: Tue, 9 May 2017 15:41:07 +0800 Subject: [PATCH] maxTextures use gl.MAX_COMBINED_TEXTURE_IMAGE_UNITS instead of gl.MAX_TEXTURE_IMAGE_UNITS --- src/renderers/webgl/WebGLState.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderers/webgl/WebGLState.js b/src/renderers/webgl/WebGLState.js index b29588ea3870e7..ce13370d5fe3e1 100644 --- a/src/renderers/webgl/WebGLState.js +++ b/src/renderers/webgl/WebGLState.js @@ -340,7 +340,7 @@ function WebGLState( gl, extensions, paramThreeToGL ) { var currentScissorTest = null; - var maxTextures = gl.getParameter( gl.MAX_TEXTURE_IMAGE_UNITS ); + var maxTextures = gl.getParameter( gl.MAX_COMBINED_TEXTURE_IMAGE_UNITS ); var version = parseFloat( /^WebGL\ ([0-9])/.exec( gl.getParameter( gl.VERSION ) )[ 1 ] ); var lineWidthAvailable = parseFloat( version ) >= 1.0;