diff options
Diffstat (limited to 'quadtree.cpp')
-rw-r--r-- | quadtree.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/quadtree.cpp b/quadtree.cpp index 8082ba7..1f2dd4a 100644 --- a/quadtree.cpp +++ b/quadtree.cpp @@ -4,8 +4,7 @@ #include <boost/format.hpp> #include <boost/timer.hpp> -#define GL_GLEXT_PROTOTYPES -#include <GL/gl.h> +#include "gl.h" #include <cmath> #include <queue> @@ -170,10 +169,10 @@ Quadtree::QuadChunk::QuadChunk(Quadtree *tree, float x, float y, float width, fl this->y = y; this->width = width; this->height = height; + this->vbo_object = this->node_count = this->vertices = 0; + this->nodes = NULL; if(width / chunk_size > 1) { - node_count = 0; - nodes = NULL; for(int i = 0; i < 4; i++) { float nx = x + ((i & 1) ^((i & 2) >> 1)) * width / 2; float ny = y + ((i & 2) >> 1) * height / 2; |