mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 14:38:30 +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 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,
|
||||||
|
|
Loading…
Add table
Reference in a new issue