aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickframebufferobject/tst_qquickframebufferobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquickframebufferobject/tst_qquickframebufferobject.cpp')
-rw-r--r--tests/auto/quick/qquickframebufferobject/tst_qquickframebufferobject.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/quick/qquickframebufferobject/tst_qquickframebufferobject.cpp b/tests/auto/quick/qquickframebufferobject/tst_qquickframebufferobject.cpp
index b7b58c6d3d..35a01b33ba 100644
--- a/tests/auto/quick/qquickframebufferobject/tst_qquickframebufferobject.cpp
+++ b/tests/auto/quick/qquickframebufferobject/tst_qquickframebufferobject.cpp
@@ -45,6 +45,7 @@
#include <QtQuick/qquickview.h>
#include <QtGui/qopenglcontext.h>
#include <QtGui/qopenglframebufferobject.h>
+#include <QtGui/qopenglfunctions.h>
#include <QtQuick/QQuickFramebufferObject>
@@ -62,7 +63,7 @@ struct FrameInfo {
QSize fboSize;
} frameInfo;
-class ColorRenderer : public QQuickFramebufferObject::Renderer
+class ColorRenderer : public QQuickFramebufferObject::Renderer, protected QOpenGLFunctions
{
public:
void render();
@@ -142,6 +143,7 @@ void ColorRenderer::synchronize(QQuickFramebufferObject *item)
QOpenGLFramebufferObject *ColorRenderer::createFramebufferObject(const QSize &size)
{
+ initializeOpenGLFunctions();
frameInfo.createFBOCount++;
QOpenGLFramebufferObjectFormat format;
if (msaa)