summaryrefslogtreecommitdiffstats
path: root/tests/auto/render/graphicshelpergl3_2/tst_graphicshelpergl3_2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/render/graphicshelpergl3_2/tst_graphicshelpergl3_2.cpp')
-rw-r--r--tests/auto/render/graphicshelpergl3_2/tst_graphicshelpergl3_2.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/auto/render/graphicshelpergl3_2/tst_graphicshelpergl3_2.cpp b/tests/auto/render/graphicshelpergl3_2/tst_graphicshelpergl3_2.cpp
index 2a67012ec..fb0265427 100644
--- a/tests/auto/render/graphicshelpergl3_2/tst_graphicshelpergl3_2.cpp
+++ b/tests/auto/render/graphicshelpergl3_2/tst_graphicshelpergl3_2.cpp
@@ -177,7 +177,7 @@ class tst_GraphicsHelperGL3_2 : public QObject
Q_OBJECT
private Q_SLOTS:
- void init()
+ void initTestCase()
{
m_window.reset(new QWindow);
m_window->setSurfaceType(QWindow::OpenGLSurface);
@@ -209,6 +209,11 @@ private Q_SLOTS:
}
}
+ void cleanupTestCase()
+ {
+ m_glContext.doneCurrent();
+ }
+
void alphaTest()
{
if (!m_initializationSuccessful)