summaryrefslogtreecommitdiff
path: root/quadtree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quadtree.cpp')
-rw-r--r--quadtree.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/quadtree.cpp b/quadtree.cpp
index 33011d5..fc6b3cc 100644
--- a/quadtree.cpp
+++ b/quadtree.cpp
@@ -260,6 +260,11 @@ void Quadtree::make_vbo() {
{{.5, .5}, {1, 0}, {0, 0}}
};
for(int i = 0; i < 4; i++) {
+ for(int j = 0; j < 3; j++) {
+ tex_coords[i][j][0] *= n->width;
+ tex_coords[i][j][1] *= n->height;
+ }
+
v[3] = n->vertex_array[i*3+3];
v[4] = n->vertex_array[i*3+4];
v[5] = n->vertex_array[i*3+5];