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