Drawable Renderer (#1570), Rebase on main.
Fix drawable ordering issue that was leading to rendering without setting up the VAO
This commit is contained in:
committed by
Bart Louwers
parent
107a4ef467
commit
3122f81328
@@ -38,7 +38,11 @@ public:
|
||||
const std::vector<DrawablePtr>& getDrawables() const { return drawables; }
|
||||
|
||||
/// Get all the completed drawables and release ownership
|
||||
std::vector<DrawablePtr> clearDrawables() { auto v = std::move(drawables); return v; }
|
||||
std::vector<DrawablePtr> clearDrawables() {
|
||||
std::vector<DrawablePtr> v = std::move(drawables);
|
||||
drawables = {};
|
||||
return v;
|
||||
}
|
||||
|
||||
/// Get the ID of the drawable we're currently working on, if any
|
||||
util::SimpleIdentity getDrawableId();
|
||||
|
||||
Reference in New Issue
Block a user