Skip to content

Commit 5d52bd9

Browse files
committed
Fix for StaticTilemap after defining vertex attributes
1 parent a734b74 commit 5d52bd9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

v3/src/gameobjects/tilemap/static/StaticTilemap.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ var StaticTilemap = new Class({
8383
vbo.addAttribute(this.tilemapRenderer.shader.getAttribLocation('a_tex_coord'), 2, gl.FLOAT, false, CONST.VERTEX_SIZE, 8);
8484
bufferData = this.bufferData = new ArrayBuffer((4 * 6 * (mapWidth * mapHeight)) * 4);
8585
this.vbo = vbo;
86+
vbo.bind();
8687
}
8788

8889
bufferF32 = new Float32Array(bufferData);

0 commit comments

Comments
 (0)