diff options
Diffstat (limited to 'quadtree.cpp')
-rw-r--r-- | quadtree.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/quadtree.cpp b/quadtree.cpp index 4b7eb52..581f92e 100644 --- a/quadtree.cpp +++ b/quadtree.cpp @@ -255,6 +255,10 @@ void Quadtree::make_vbo() { const size_t tex_coord_chunk_size = sizeof(float)*2*12; const size_t tex_coords_size = tex_coord_chunk_size*nodes; + if(vertices_size + normals_size + tex_coords_size > 100*1024*1024) { + std::cerr << ">100 MB" << std::endl; + } + glBufferData(GL_ARRAY_BUFFER, vertices_size + normals_size + tex_coords_size, NULL, GL_DYNAMIC_DRAW); std::queue<Quadtree::QuadNode*> q; |