mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
love.graphics.setColor no longer uses the main per-vertex color attribute. This lets it affect the color of ParticleSystems, and SpriteBatches and Meshes even when they use custom per-vertex colors.
This commit is contained in:
@@ -783,7 +783,7 @@ Text *Graphics::newText(Font *font, const std::string &text)
|
||||
|
||||
void Graphics::setColor(Color c)
|
||||
{
|
||||
gl.setColor(c);
|
||||
glVertexAttrib4f(ATTRIB_CONSTANTCOLOR, c.r/255.0f, c.g/255.0f, c.b/255.0f, c.a/255.0f);
|
||||
states.back().color = c;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user