X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fvertexarray.cpp;h=a13d79cc6b0abd3e0c42362b24dc56fc14e05d27;hb=e92de029768eef5f0fd744329e589161b46d0762;hp=b3bcb48118b291a114024bd86f7d9016d22a26b0;hpb=a3cc9f4469153396c7ad0868f3cbb2d2f698d710;p=libs%2Fgl.git diff --git a/source/core/vertexarray.cpp b/source/core/vertexarray.cpp index b3bcb481..a13d79cc 100644 --- a/source/core/vertexarray.cpp +++ b/source/core/vertexarray.cpp @@ -40,7 +40,7 @@ void VertexArray::reserve(unsigned n) data.reserve(n*stride); } -float *VertexArray::append() +char *VertexArray::append() { if(format.empty()) throw invalid_operation("VertexArray::append"); @@ -50,7 +50,7 @@ float *VertexArray::append() return &*(data.end()-stride); } -float *VertexArray::modify(unsigned i) +char *VertexArray::modify(unsigned i) { if(format.empty()) throw invalid_operation("VertexArray::modify"); @@ -60,7 +60,7 @@ float *VertexArray::modify(unsigned i) unsigned VertexArray::get_data_size() const { - return data.size()*sizeof(float); + return data.size(); }