Skip to content

Commit

Permalink
Backport changes to fix quickCheckAPI-A fail (#3659) (#3659)
Browse files Browse the repository at this point in the history
Pick the fixs(#3655) for 2.0.0 and 1.0.3.

Fixes #3654.

Signed-off-by: Wujian Sun <wujian.sun_1@nxp.com>
  • Loading branch information
WujianSun authored May 31, 2024
1 parent 9d04f50 commit 22e4642
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ texParameterParam[GL.TEXTURE_WRAP_T] = texParameterParam[GL.TEXTURE_WRAP_S];
textureUnit = constCheck.apply(this, (function(){
var textureUnits = [];
var texUnits = GL.getParameter(GL.MAX_TEXTURE_IMAGE_UNITS);
for (var i=0; i<texUnits; i++) textureUnits.push(GL['TEXTURE'+i]);
for (var i=0; i<texUnits; i++) textureUnits.push(GL.TEXTURE0+i);
return textureUnits;
})());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ texParameterParam[GL.TEXTURE_WRAP_T] = texParameterParam[GL.TEXTURE_WRAP_S];
textureUnit = constCheck.apply(this, (function(){
var textureUnits = [];
var texUnits = GL.getParameter(GL.MAX_TEXTURE_IMAGE_UNITS);
for (var i=0; i<texUnits; i++) textureUnits.push(GL['TEXTURE'+i]);
for (var i=0; i<texUnits; i++) textureUnits.push(GL.TEXTURE0+i);
return textureUnits;
})());

Expand Down

0 comments on commit 22e4642

Please sign in to comment.