mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 21:24:09 +00:00
Merge pull request #2961 from vulvulune/transform-getvettexdata-bug2
Bug fix: replace WebGLPipeline.Attribute by module Attribute
This commit is contained in:
commit
33c6b68dae
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue