Drawable Renderer (#1570), Evaluate and apply color

This commit is contained in:
Tim Sylvester
2023-04-28 12:12:56 -07:00
committed by Bart Louwers
parent 8a42b2fa5f
commit 010b8f9280
14 changed files with 179 additions and 45 deletions

View File

@@ -117,7 +117,8 @@ void Renderer::Impl::render(const RenderTree& renderTree) {
auto& shader = drawable.getShader();
// Generate a vertex array object for the drawable state, if necessary
if (shader && !drawableGL.getVertexArray().isValid()) {
if (shader && (!drawableGL.getVertexArray().isValid() ||
drawableGL.getVertexAttributes().isDirty())) {
const auto usage = gfx::BufferUsageType::StaticDraw;
// Build index buffer