Drawable Renderer (#1570), remove const
This commit is contained in:
committed by
Bart Louwers
parent
730c9c0712
commit
aafd1ecf04
@@ -34,7 +34,7 @@ void DrawableGLBuilder::init() {
|
||||
std::size_t index = 0;
|
||||
colorAttr->reserve(impl->colors.size());
|
||||
for (const auto& color : impl->colors) {
|
||||
const auto x = util::convert<float>(color.toArray());
|
||||
auto x = util::convert<float>(color.toArray());
|
||||
colorAttr->set(index, gfx::VertexAttribute::float4{x[0], x[1], x[2], x[3]});
|
||||
colorAttr->set(index++, DrawableGL::colorAttrValue(color));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user