Browse Source

Fix a minor validation bug.

Alex Szpakowski 3 years ago
parent
commit
ac8f5374c2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/graphics/Graphics.cpp

+ 1 - 1
src/modules/graphics/Graphics.cpp

@@ -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;