mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Fix a minor validation bug.
This commit is contained in:
@@ -1529,7 +1529,7 @@ void Graphics::drawShaderVertices(PrimitiveType primtype, int vertexcount, int i
|
||||
if (vertexcount < 0 || instancecount < 0)
|
||||
throw love::Exception("drawShaderVertices vertex and instance count parameters must not be negative.");
|
||||
|
||||
Shader::current->validateDrawState(PRIMITIVE_TRIANGLES, maintexture);
|
||||
Shader::current->validateDrawState(primtype, maintexture);
|
||||
|
||||
VertexAttributes attributes;
|
||||
BufferBindings buffers;
|
||||
|
||||
Reference in New Issue
Block a user