summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl/qopengltimerquery.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/opengl/qopengltimerquery.cpp')
-rw-r--r--src/gui/opengl/qopengltimerquery.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/opengl/qopengltimerquery.cpp b/src/gui/opengl/qopengltimerquery.cpp
index c756e3f527..908a9cee07 100644
--- a/src/gui/opengl/qopengltimerquery.cpp
+++ b/src/gui/opengl/qopengltimerquery.cpp
@@ -124,11 +124,6 @@ public:
bool QOpenGLTimerQueryPrivate::create()
{
- if (QOpenGLFunctions::isES()) {
- qWarning("QOpenGLTimerQuery: Not supported on dynamic GL ES");
- return false;
- }
-
QOpenGLContext *ctx = QOpenGLContext::currentContext();
if (timer && context == ctx)
@@ -140,6 +135,11 @@ bool QOpenGLTimerQueryPrivate::create()
return false;
}
+ if (context->isES()) {
+ qWarning("QOpenGLTimerQuery: Not supported on OpenGL ES");
+ return false;
+ }
+
// Resolve the functions provided by OpenGL 1.5 and OpenGL 3.3 or ARB_timer_query
core = new QOpenGLQueryHelper(context);