Skip to content

Commit 7f6f2c6

Browse files
bayazitdy
authored andcommitted
fix textureSize
1 parent 12a58fa commit 7f6f2c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/stdlib.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ function textureSize(sampler, lod) {
766766
if (sampler.shape) return [sampler.shape[0], sampler.shape[1]];
767767
return [sampler.width, sampler.height];
768768
};
769-
texture.type = function (node) {
769+
textureSize.type = function (node) {
770770
var samplerType = this.process(node.children[1]).type;
771771
if (/1D/.test(samplerType)) return 'int';
772772
if (/2D|Cube/.test(samplerType)) return 'ivec2';

0 commit comments

Comments
 (0)