summaryrefslogtreecommitdiffstats
path: root/src/render/backend/qgraphicshelpergl3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/backend/qgraphicshelpergl3.cpp')
-rw-r--r--src/render/backend/qgraphicshelpergl3.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/render/backend/qgraphicshelpergl3.cpp b/src/render/backend/qgraphicshelpergl3.cpp
index 8901185a7..f5c046e61 100644
--- a/src/render/backend/qgraphicshelpergl3.cpp
+++ b/src/render/backend/qgraphicshelpergl3.cpp
@@ -324,11 +324,11 @@ bool QGraphicsHelperGL3::supportsFeature(QGraphicsHelperInterface::Feature featu
{
switch (feature) {
case MRT:
+ case UniformBufferObject:
+ case PrimitiveRestart:
return true;
case Tessellation:
return !m_tessFuncs.isNull();
- case UniformBufferObject:
- return true;
default:
return false;
}
@@ -881,6 +881,17 @@ GLint QGraphicsHelperGL3::maxClipPlaneCount()
return max;
}
+void QGraphicsHelperGL3::enablePrimitiveRestart(int primitiveRestartIndex)
+{
+ m_funcs->glPrimitiveRestartIndex(primitiveRestartIndex);
+ m_funcs->glEnable(GL_PRIMITIVE_RESTART);
+}
+
+void QGraphicsHelperGL3::disablePrimitiveRestart()
+{
+ m_funcs->glDisable(GL_PRIMITIVE_RESTART);
+}
+
} // Render
} // Qt3D