Drawable Renderer (#1570), Fix color normalization problems, don't produce zero-alpha drawables
This commit is contained in:
committed by
Bart Louwers
parent
1fa3502048
commit
76658d8717
@@ -82,7 +82,7 @@ gfx::UniformBufferArray& DrawableGL::mutableUniformBuffers() {
|
||||
void DrawableGL::resetColor(const Color& newColor) {
|
||||
if (const auto& colorAttr = impl->vertexAttributes.get("a_color")) {
|
||||
colorAttr->clear();
|
||||
colorAttr->set(0, colorAttrValue(newColor));
|
||||
colorAttr->set(0, Drawable::colorAttrRGBA(newColor));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user