Drawable Renderer (#1570), Rebase on main, squash trivial commits
This commit is contained in:
committed by
Bart Louwers
parent
a646cbf938
commit
f76fb98745
@@ -26,7 +26,7 @@ DrawablePtr DrawableBuilder::getCurrentDrawable(bool createIfNone) {
|
||||
|
||||
void DrawableBuilder::flush() {
|
||||
if (!impl->vertices.empty()) {
|
||||
auto draw = getCurrentDrawable(/*create=*/true);
|
||||
auto draw = getCurrentDrawable(/*createIfNone=*/true);
|
||||
currentDrawable->setDrawPriority(drawPriority);
|
||||
currentDrawable->setShader(shader);
|
||||
currentDrawable->setVertexAttributes(getVertexAttributes());
|
||||
|
||||
Reference in New Issue
Block a user