mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +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();
|
flush();
|
||||||
|
|
||||||
if (Shader::isDefaultActive())
|
if (Shader::isDefaultActive())
|
||||||
Shader::attachDefault(Shader::STANDARD_DEFAULT);
|
Shader::attachDefault(primitiveType == PRIMITIVE_POINTS ? Shader::STANDARD_POINTS : Shader::STANDARD_DEFAULT);
|
||||||
|
|
||||||
if (Shader::current)
|
if (Shader::current)
|
||||||
Shader::current->validateDrawState(primitiveType, texture);
|
Shader::current->validateDrawState(primitiveType, texture);
|
||||||
|
|||||||
Reference in New Issue
Block a user