]> git.tdb.fi Git - libs/gl.git/commitdiff
Minor fixes
authorMikko Rasa <tdb@tdb.fi>
Sun, 28 Sep 2014 18:08:00 +0000 (21:08 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 29 Sep 2014 15:10:06 +0000 (18:10 +0300)
source/pixelformat.cpp
source/vertexarray.cpp

index 7647717a44ad3d047e7bfbc0d386a575f5564701..ee3cad099dd989bb87ff6932866c675d24815165 100644 (file)
@@ -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");
        }
 }
 
index 042f58c758b41ac48af3fccd52dcb7ec5f75440b..867aee7b189b71f348950741e4f2ccda6ae18921 100644 (file)
@@ -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);
 }