summaryrefslogtreecommitdiffstats
path: root/src/opengl/qopengltimerquery.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/opengl/qopengltimerquery.cpp')
-rw-r--r--src/opengl/qopengltimerquery.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/opengl/qopengltimerquery.cpp b/src/opengl/qopengltimerquery.cpp
index 44955d48fc..d5ef875efa 100644
--- a/src/opengl/qopengltimerquery.cpp
+++ b/src/opengl/qopengltimerquery.cpp
@@ -143,11 +143,11 @@ bool QOpenGLTimerQueryPrivate::create()
// Check to see if we also need to resolve the functions for EXT_timer_query
QSurfaceFormat f = context->format();
- if (f.version() <= qMakePair<int, int>(3, 2)
+ if (f.version() <= qMakePair(3, 2)
&& !context->hasExtension(QByteArrayLiteral("GL_ARB_timer_query"))
&& context->hasExtension(QByteArrayLiteral("GL_EXT_timer_query"))) {
ext = new QExtTimerQueryHelper(context);
- } else if (f.version() <= qMakePair<int, int>(3, 2)
+ } else if (f.version() <= qMakePair(3, 2)
&& !context->hasExtension(QByteArrayLiteral("GL_ARB_timer_query"))
&& !context->hasExtension(QByteArrayLiteral("GL_EXT_timer_query"))) {
qWarning("QOpenGLTimerQuery requires one of:\n"
@@ -530,11 +530,11 @@ bool QOpenGLTimeMonitorPrivate::create()
// Check to see if we also need to resolve the functions for EXT_timer_query
QSurfaceFormat f = context->format();
- if (f.version() <= qMakePair<int, int>(3, 2)
+ if (f.version() <= qMakePair(3, 2)
&& !context->hasExtension(QByteArrayLiteral("GL_ARB_timer_query"))
&& context->hasExtension(QByteArrayLiteral("GL_EXT_timer_query"))) {
ext = new QExtTimerQueryHelper(context);
- } else if (f.version() <= qMakePair<int, int>(3, 2)
+ } else if (f.version() <= qMakePair(3, 2)
&& !context->hasExtension(QByteArrayLiteral("GL_ARB_timer_query"))
&& !context->hasExtension(QByteArrayLiteral("GL_EXT_timer_query"))) {
qWarning("QOpenGLTimeMonitor requires one of:\n"