From ac8f5374c27d8ac43bcc0e016bd96bcbb3011b82 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Mon, 3 Jan 2022 14:36:22 -0400 Subject: [PATCH] Fix a minor validation bug. --- src/modules/graphics/Graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/Graphics.cpp b/src/modules/graphics/Graphics.cpp index ca0a7ce3a..11a3333b8 100644 --- a/src/modules/graphics/Graphics.cpp +++ b/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;