Drawable Renderer (#1570), Evaluate and apply color
This commit is contained in:
committed by
Bart Louwers
parent
8a42b2fa5f
commit
010b8f9280
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user