瀏覽代碼

Fix a minor validation bug.

Alex Szpakowski 4 年之前
父節點
當前提交
ac8f5374c2
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;