diff --git a/lib/stdlib.js b/lib/stdlib.js index f513717..f503022 100644 --- a/lib/stdlib.js +++ b/lib/stdlib.js @@ -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';