diff options
author | Kai Koehne <kai.koehne@qt.io> | 2016-06-13 14:52:45 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@qt.io> | 2016-06-13 14:22:07 +0000 |
commit | 7f8dc9d00c02e0e28cdea92cac8f8e4379bed68b (patch) | |
tree | b8ff5981946f25249add875c0575b6e30e5e15a7 /examples/quick/textureprovider/etcprovider.h | |
parent | 4f94ddcf295c59dec86c8570c19e3e7427d68b06 (diff) |
Fix build of textureprovider example with -opengl dynamic
Do not link to OpenGL calls directly. Instead, use QOpenGLFunctions.
Task-number: QTBUG-53841
Change-Id: Ic87bb78fede1ee9f75b81247406ad858b2bf7342
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'examples/quick/textureprovider/etcprovider.h')
-rw-r--r-- | examples/quick/textureprovider/etcprovider.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quick/textureprovider/etcprovider.h b/examples/quick/textureprovider/etcprovider.h index a9ec5ed606..e9761e3629 100644 --- a/examples/quick/textureprovider/etcprovider.h +++ b/examples/quick/textureprovider/etcprovider.h @@ -34,7 +34,7 @@ #ifndef ETCPROVIDER_H #define ETCPROVIDER_H -#include <qopengl.h> +#include <QOpenGLFunctions> #include <QQuickImageProvider> #include <QtQuick/QSGTexture> #include <QUrl> @@ -54,7 +54,7 @@ private: QUrl m_baseUrl; }; -class EtcTexture : public QSGTexture +class EtcTexture : public QSGTexture, protected QOpenGLFunctions { Q_OBJECT public: |