From a820c852d14f466f3d9096c7efcd571d3bf006eb Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Mon, 9 May 2011 22:43:20 +0200 Subject: Fixed chunk border bugginess. --- scene.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'scene.cpp') diff --git a/scene.cpp b/scene.cpp index 489f72c..b8f7268 100644 --- a/scene.cpp +++ b/scene.cpp @@ -315,7 +315,6 @@ void Scene::render() { //const float light_pos[4] = {0, 1, 0, 0}; //glLightfv(GL_LIGHT0, GL_POSITION, light_pos); - unsigned int chunks_rendered = 0; if(render_terrain) { terrain_program.use(); GLint show_sel = glGetUniformLocation(terrain_program.get_program(), "show_sel"); @@ -354,7 +353,6 @@ void Scene::render() { continue; } else if(!chunk->vbo_object) continue;*/ - chunks_rendered++; glPushMatrix(); glTranslatef(-pos.x + chunk->x, -pos.y, -pos.z + chunk->y); if(show_selection) @@ -430,7 +428,7 @@ void Scene::render() { glColor3f(1, 1, 1); glTranslatef(0, video::height-height, 0); font->Render((boost::format("chunks: %d gravity: %d steps: %d") - % chunks_rendered % gravity % steps).str().c_str()); + % terrain->chunks.size() % gravity % steps).str().c_str()); //font->Render((boost::format("%dx%d %d levels %d nodes tree creation time: %f steps: %d update: %d") // % scene.qt->width % scene.qt->height % scene.qt->levels % scene.qt->nodes % scene.qt->init_time % steps % scene.qt->thread_running).str().c_str()); //glTranslatef(0, height, 0); -- cgit v1.2.3