From ea6e6bb769d713ac55114c1940626f13e384ebed Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 17 Oct 2010 16:28:26 +0000 Subject: corrected vertex array size reporting --- src/model/vertexarray.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/vertexarray.cc b/src/model/vertexarray.cc index ee311ac..a559892 100644 --- a/src/model/vertexarray.cc +++ b/src/model/vertexarray.cc @@ -26,7 +26,7 @@ VertexArray::VertexArray(size_t size) vertex_data = (float *) malloc(vertex_size * sizeof(float)); con_print << "^BInitializing vertex array..." << std::endl; - con_print << " " << sizeof(vertex_data) / (1024 * 1024) << " Mb allocated" << std::endl; + con_print << " " << (vertex_size * sizeof(float)) / (1024 * 1024) << " Mb allocated" << std::endl; clear(); } -- cgit v1.2.3