diff options
author | Stijn Buys <ingar@osirion.org> | 2010-10-17 16:28:26 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-10-17 16:28:26 +0000 |
commit | ea6e6bb769d713ac55114c1940626f13e384ebed (patch) | |
tree | 39eba0f30bb37a018170d9821bb1dc56bafcb3f8 | |
parent | 3be87402d2a63bf536bd712e0575b4f559af579a (diff) |
corrected vertex array size reporting
-rw-r--r-- | src/model/vertexarray.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |