summaryrefslogtreecommitdiffstats
path: root/tests/auto/render/opengl/graphicshelpergl3_2/tst_graphicshelpergl3_2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/render/opengl/graphicshelpergl3_2/tst_graphicshelpergl3_2.cpp')
-rw-r--r--tests/auto/render/opengl/graphicshelpergl3_2/tst_graphicshelpergl3_2.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/auto/render/opengl/graphicshelpergl3_2/tst_graphicshelpergl3_2.cpp b/tests/auto/render/opengl/graphicshelpergl3_2/tst_graphicshelpergl3_2.cpp
index 21335e541..c21def5cd 100644
--- a/tests/auto/render/opengl/graphicshelpergl3_2/tst_graphicshelpergl3_2.cpp
+++ b/tests/auto/render/opengl/graphicshelpergl3_2/tst_graphicshelpergl3_2.cpp
@@ -553,9 +553,8 @@ private Q_SLOTS:
textures[3]->bind();
m_func->glGetTexImage(GL_TEXTURE_2D, 0, GL_RGBA, GL_FLOAT, colors.data());
textures[3]->release();
- for (const QVector4D c : colors) {
+ for (const QVector4D &c : colors)
QVERIFY(c == clearValue1);
- }
// WHEN
const QVector4D clearValue2 = QVector4D(0.4f, 0.5f, 0.4f, 1.0f);
@@ -565,9 +564,9 @@ private Q_SLOTS:
textures[3]->bind();
m_func->glGetTexImage(GL_TEXTURE_2D, 0, GL_RGBA, GL_FLOAT, colors.data());
textures[3]->release();
- for (const QVector4D c : colors) {
+ for (const QVector4D &c : colors)
QVERIFY(c == clearValue2);
- }
+
// Restore
m_func->glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0);
m_func->glDeleteFramebuffers(1, &fboId);