From: Mikko Rasa Date: Sun, 28 Sep 2014 18:08:00 +0000 (+0300) Subject: Minor fixes X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=19a6b5184fe057602a53b3f62f49e3ea2ae60a2e Minor fixes --- diff --git a/source/pixelformat.cpp b/source/pixelformat.cpp index 7647717a..ee3cad09 100644 --- a/source/pixelformat.cpp +++ b/source/pixelformat.cpp @@ -144,7 +144,7 @@ unsigned get_component_count(PixelFormat pf) case BGRA: return 4; default: - throw invalid_argument("get_pixelformat_component_count"); + throw invalid_argument("get_component_count"); } } diff --git a/source/vertexarray.cpp b/source/vertexarray.cpp index 042f58c7..867aee7b 100644 --- a/source/vertexarray.cpp +++ b/source/vertexarray.cpp @@ -85,6 +85,7 @@ void VertexArray::reserve(unsigned n) float *VertexArray::append() { data.insert(data.end(), stride, 0.0f); + update_offset(); dirty = true; return &*(data.end()-stride); }