An std::vector was .reserve ()'d a wrong size, fix it.
Signed-off-by: Pekka Paalanen <[email protected]>
---
plugins/opengl/src/vertexbuffer.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/plugins/opengl/src/vertexbuffer.cpp
b/plugins/opengl/src/vertexbuffer.cpp
index 02a2ff8..b748a9a 100644
--- a/plugins/opengl/src/vertexbuffer.cpp
+++ b/plugins/opengl/src/vertexbuffer.cpp
@@ -168,7 +168,7 @@ void GLVertexBuffer::addTexCoords (GLuint texture,
priv->textureData.push_back (temp);
}
- priv->textureData[texture].reserve (priv->textureData.size () +
+ priv->textureData[texture].reserve (priv->textureData[texture].size () +
(nTexcoords * 2));
for (GLuint i = 0; i < nTexcoords * 2; i++)
--
1.7.3.4
_______________________________________________
dev mailing list
[email protected]
http://lists.compiz.org/mailman/listinfo/dev