Skip to content

Commit

Permalink
Merge pull request #11303 from 06wj/patch_texture
Browse files Browse the repository at this point in the history
maxTextures use gl.MAX_COMBINED_TEXTURE_IMAGE_UNITS
  • Loading branch information
mrdoob authored May 11, 2017
2 parents a9d48b5 + 65b20bc commit a62395d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderers/webgl/WebGLState.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a62395d

Please sign in to comment.