summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/glContainer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/glContainer.h b/lib/glContainer.h
index 3dff6b1..4b85005 100644
--- a/lib/glContainer.h
+++ b/lib/glContainer.h
@@ -315,6 +315,7 @@ public:
if (newCapacity <= capacity_) {
return;
}
+ newCapacity = std::max(newCapacity, capacity_ * 2);
std::vector<T> existing;
existing.reserve(size_);