From 19a6b5184fe057602a53b3f62f49e3ea2ae60a2e Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 28 Sep 2014 21:08:00 +0300 Subject: [PATCH] Minor fixes --- source/pixelformat.cpp | 2 +- source/vertexarray.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.45.2