summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2015-06-05 13:10:44 +0100
committerTim Blechmann <tim@klingt.org>2015-06-05 15:30:40 +0000
commit7c07835dbfa127d901cb490165ff92a375c9f09b (patch)
tree8b3a74087b194e0052df06e0d3bf26b88caeecf5
parent3be1d4fd1e39d67ff086504c9d16a37a38296005 (diff)
Fix compilation on OS X 10.8
Task-number: QTBUG-46143 Change-Id: I1ebf37c5f78f4532749d7b432bca367c51d7efdd Reviewed-by: Tim Blechmann <tim@klingt.org> Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
-rw-r--r--src/render/backend/qgraphicshelpergl3.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/render/backend/qgraphicshelpergl3.cpp b/src/render/backend/qgraphicshelpergl3.cpp
index cd2a5033b..1b0fde66f 100644
--- a/src/render/backend/qgraphicshelpergl3.cpp
+++ b/src/render/backend/qgraphicshelpergl3.cpp
@@ -117,12 +117,17 @@ void QGraphicsHelperGL3::drawArrays(GLenum primitiveType,
void QGraphicsHelperGL3::setVerticesPerPatch(GLint verticesPerPatch)
{
+#if defined(QT_OPENGL_4)
if (!m_tessFuncs) {
qWarning() << "Tessellation not supported with OpenGL 3 without GL_ARB_tessellation_shader";
return;
}
m_tessFuncs->glPatchParameteri(GL_PATCH_VERTICES, verticesPerPatch);
+#else
+ Q_UNUSED(verticesPerPatch);
+ qWarning() << "Tessellation not supported";
+#endif
}
void QGraphicsHelperGL3::useProgram(GLuint programId)