Skip to content

Commit

Permalink
fix textureSize
Browse files Browse the repository at this point in the history
  • Loading branch information
bayazit authored Feb 19, 2024
1 parent 8554ae8 commit bdd24ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stdlib.js
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ function textureSize(sampler, lod) {
if (sampler.shape) return [sampler.shape[0], sampler.shape[1]];
return [sampler.width, sampler.height];
};
texture.type = function (node) {
textureSize.type = function (node) {
var samplerType = this.process(node.children[1]).type;
if (/1D/.test(samplerType)) return 'int';
if (/2D|Cube/.test(samplerType)) return 'ivec2';
Expand Down

0 comments on commit bdd24ea

Please sign in to comment.