Fix a minor validation bug.

This commit is contained in:
Alex Szpakowski
2022-01-03 14:36:22 -04:00
parent 0c4be3d5e3
commit ac8f5374c2
+1 -1
View File
@@ -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;