Advertisement
Ancurio

Untitled

Oct 1st, 2014
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.49 KB | None | 0 0
  1. diff --git a/src/tilemapvx.cpp b/src/tilemapvx.cpp
  2. index bbd925d..78d9224 100644
  3. --- a/src/tilemapvx.cpp
  4. +++ b/src/tilemapvx.cpp
  5. @@ -118,6 +118,10 @@ struct TilemapVXPrivate : public ViewportElement, TileAtlasVX::Reader
  6.         shState->requestAtlasTex(ATLASVX_W, ATLASVX_H, atlas);
  7.  
  8.         vbo = VBO::gen();
  9. +       VBO::bind(vbo);
  10. +       allocQuads = 4;
  11. +       VBO::allocEmpty(quadBytes(allocQuads), GL_DYNAMIC_DRAW);
  12. +       VBO::unbind();
  13.  
  14.         GLMeta::vaoFillInVertexData<SVertex>(vao);
  15.         vao.vbo = vbo;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement