summaryrefslogtreecommitdiffstats
path: root/tests/auto/render/opengl/graphicshelpergl2/tst_graphicshelpergl2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/render/opengl/graphicshelpergl2/tst_graphicshelpergl2.cpp')
-rw-r--r--tests/auto/render/opengl/graphicshelpergl2/tst_graphicshelpergl2.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/render/opengl/graphicshelpergl2/tst_graphicshelpergl2.cpp b/tests/auto/render/opengl/graphicshelpergl2/tst_graphicshelpergl2.cpp
index 5a1d22283..f733697f7 100644
--- a/tests/auto/render/opengl/graphicshelpergl2/tst_graphicshelpergl2.cpp
+++ b/tests/auto/render/opengl/graphicshelpergl2/tst_graphicshelpergl2.cpp
@@ -33,13 +33,14 @@
#include <Qt3DRender/private/attachmentpack_p.h>
#include <QtOpenGLExtensions/QOpenGLExtensions>
#include <QOpenGLContext>
+#include <QOpenGLVersionFunctionsFactory>
#include <QOpenGLBuffer>
#include <QOpenGLFunctions_2_0>
#include <QOpenGLShaderProgram>
#include <QOpenGLVertexArrayObject>
#include <QSurfaceFormat>
-#ifndef QT_OPENGL_ES_2
+#if !QT_CONFIG(opengles2)
#define TEST_SHOULD_BE_PERFORMED 1
@@ -153,7 +154,7 @@ private Q_SLOTS:
return;
}
- if ((m_func = m_glContext.versionFunctions<QOpenGLFunctions_2_0>()) != nullptr) {
+ if ((m_func = QOpenGLVersionFunctionsFactory::get<QOpenGLFunctions_2_0>()) != nullptr) {
if (m_glContext.hasExtension(QByteArrayLiteral("GL_ARB_framebuffer_object"))) {
m_fboFuncs = new QOpenGLExtension_ARB_framebuffer_object();
m_fboFuncs->initializeOpenGLFunctions();