From dae9c1024b54b8dc57863f1678a5e4adc771ec94 Mon Sep 17 00:00:00 2001 From: vulvulune Date: Tue, 17 Jan 2017 09:12:24 +0100 Subject: [PATCH] replace WebGLPipeline.Attribute by module Attribute --- v3/src/renderer/webgl/utils/CreateAttribArray.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/v3/src/renderer/webgl/utils/CreateAttribArray.js b/v3/src/renderer/webgl/utils/CreateAttribArray.js index 011a424d4..928eb9d4f 100644 --- a/v3/src/renderer/webgl/utils/CreateAttribArray.js +++ b/v3/src/renderer/webgl/utils/CreateAttribArray.js @@ -1,10 +1,12 @@ +var Attribute = require('./Attribute'); + var CreateAttribArray = function (gl, program, attributeDescArray) { var attributes = []; for (var index = 0, length = attributeDescArray.length; index < length; ++index) { var desc = attributeDescArray[index]; - attributes.push(new WebGLPipeline.Attribute( + attributes.push(new Attribute( gl.getAttribLocation(program, desc.name), desc.size, desc.type,