summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/render/backend/renderer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/backend/renderer.cpp b/src/render/backend/renderer.cpp
index bf4a810b8..9c49e00ce 100644
--- a/src/render/backend/renderer.cpp
+++ b/src/render/backend/renderer.cpp
@@ -915,6 +915,9 @@ void Renderer::executeCommands(const QVector<RenderCommand *> &commands)
const bool drawIndexed = indexAttribute != Q_NULLPTR;
const GLint indexType = drawIndexed ? QGraphicsContext::glDataTypeFromAttributeDataType(indexAttribute->dataType()) : 0;
+ if (rGeometryRenderer->primitiveType() == QGeometryRenderer::Patches)
+ m_graphicsContext->setVerticesPerPatch(rGeometry->verticesPerPatch());
+
// TO DO: Add glMulti Draw variants
if (!drawInstanced) { // Non instanced Rendering
if (drawIndexed)