Skip to content

Commit

Permalink
Fix quickCheckAPI-A fail when MAX_TEXTURE_IMAGE_UNITS > 32.(#3654) (#…
Browse files Browse the repository at this point in the history
…3655)

GL['TEXTURE'+i] will report not defined when MAX_TEXTURE_IMAGE_UNITS > 32.

Add more TEXTURE_IMAGE_UNITS support for modern GPU that may support 64
or more.

Fixes #3654 .

Signed-off-by: Wujian Sun <[email protected]>
  • Loading branch information
WujianSun authored May 31, 2024
1 parent f599fd5 commit 9d04f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/tests/conformance/more/conformance/quickCheckAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,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 9d04f50

Please sign in to comment.