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.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/opengl/qopengltimerquery.cpp b/src/gui/opengl/qopengltimerquery.cpp
index c5c3d42e5d..deb88b7778 100644
--- a/src/gui/opengl/qopengltimerquery.cpp
+++ b/src/gui/opengl/qopengltimerquery.cpp
@@ -44,6 +44,7 @@
#include "qopenglqueryhelper_p.h"
#include <QtCore/private/qobject_p.h>
#include <QtGui/QOpenGLContext>
+#include <QtGui/QOpenGLFunctions>
QT_BEGIN_NAMESPACE
@@ -123,6 +124,11 @@ 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)