summaryrefslogtreecommitdiffstats
path: root/src/render/backend/qgraphicshelpergl4.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/backend/qgraphicshelpergl4.cpp')
-rw-r--r--src/render/backend/qgraphicshelpergl4.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/render/backend/qgraphicshelpergl4.cpp b/src/render/backend/qgraphicshelpergl4.cpp
index 103ea15bf..4102bfa4c 100644
--- a/src/render/backend/qgraphicshelpergl4.cpp
+++ b/src/render/backend/qgraphicshelpergl4.cpp
@@ -863,6 +863,17 @@ GLint QGraphicsHelperGL4::maxClipPlaneCount()
return max;
}
+void QGraphicsHelperGL4::enablePrimitiveRestart(int primitiveRestartIndex)
+{
+ m_funcs->glPrimitiveRestartIndex(primitiveRestartIndex);
+ m_funcs->glEnable(GL_PRIMITIVE_RESTART);
+}
+
+void QGraphicsHelperGL4::disablePrimitiveRestart()
+{
+ m_funcs->glDisable(GL_PRIMITIVE_RESTART);
+}
+
} // Render
} // Qt3D