Merge pull request #2961 from vulvulune/transform-getvettexdata-bug2

Bug fix: replace WebGLPipeline.Attribute by module Attribute
This commit is contained in:
Felipe Alfonso 2017-01-17 20:36:48 -03:00 committed by GitHub
commit 33c6b68dae

View file

@ -1,10 +1,12 @@
var Attribute = require('./Attribute');
var CreateAttribArray = function (gl, program, attributeDescArray) var CreateAttribArray = function (gl, program, attributeDescArray)
{ {
var attributes = []; var attributes = [];
for (var index = 0, length = attributeDescArray.length; index < length; ++index) for (var index = 0, length = attributeDescArray.length; index < length; ++index)
{ {
var desc = attributeDescArray[index]; var desc = attributeDescArray[index];
attributes.push(new WebGLPipeline.Attribute( attributes.push(new Attribute(
gl.getAttribLocation(program, desc.name), gl.getAttribLocation(program, desc.name),
desc.size, desc.size,
desc.type, desc.type,