summaryrefslogtreecommitdiff
path: root/gfx/gl/instanceVertices.h
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/gl/instanceVertices.h')
-rw-r--r--gfx/gl/instanceVertices.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/gfx/gl/instanceVertices.h b/gfx/gl/instanceVertices.h
index 28e11ee..629c664 100644
--- a/gfx/gl/instanceVertices.h
+++ b/gfx/gl/instanceVertices.h
@@ -127,16 +127,22 @@ public:
}
template<typename Pred>
- glContainer<T>::iterator
+ base::size_type
partition(Pred pred)
{
- return partition(base::begin(), base::end(), pred);
+ return indexOf(partition(base::begin(), base::end(), pred));
}
protected:
static constexpr auto npos = static_cast<size_t>(-1);
friend InstanceProxy;
+ base::size_type
+ indexOf(base::iterator iter)
+ {
+ return static_cast<base::size_type>(iter - base::begin());
+ }
+
void
release(const size_t pidx)
{