mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
drawing a points mesh with the default shader doesn't cause an error.
This commit is contained in:
@@ -577,7 +577,7 @@ void Mesh::drawInternal(Graphics *gfx, const Matrix4 &m, int instancecount, Buff
|
||||
flush();
|
||||
|
||||
if (Shader::isDefaultActive())
|
||||
Shader::attachDefault(Shader::STANDARD_DEFAULT);
|
||||
Shader::attachDefault(primitiveType == PRIMITIVE_POINTS ? Shader::STANDARD_POINTS : Shader::STANDARD_DEFAULT);
|
||||
|
||||
if (Shader::current)
|
||||
Shader::current->validateDrawState(primitiveType, texture);
|
||||
|
||||
Reference in New Issue
Block a user