summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-11-09 02:58:48 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2009-11-17 05:56:09 (GMT)
commit7304b9486d95da4c4456821f816445157cdeb397 (patch)
tree000ca342dfda7ed6215b08db9b4f731db40db069 /tests
parent22d2f16625eab06211e298cb53285d6dae6c2504 (diff)
downloadQt-7304b9486d95da4c4456821f816445157cdeb397.zip
Qt-7304b9486d95da4c4456821f816445157cdeb397.tar.gz
Qt-7304b9486d95da4c4456821f816445157cdeb397.tar.bz2
Mark both the new and original EGL contexts as sharing
If we succeed in creating a shared context, then mark the original as shared as well. Reviewed-by: Sarah Smith (cherry picked from commit 09a123c7f9df37f82a4baab0e7ec70ebfe5444d3)
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qgl/tst_qgl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qgl/tst_qgl.cpp b/tests/auto/qgl/tst_qgl.cpp
index 3745230..c25c05c 100644
--- a/tests/auto/qgl/tst_qgl.cpp
+++ b/tests/auto/qgl/tst_qgl.cpp
@@ -1729,6 +1729,7 @@ void tst_QGL::shareRegister()
delete glw1;
QSKIP("Context sharing is not supported", SkipSingle);
}
+ QVERIFY(glw1->isSharing());
QVERIFY(glw1->context() != glw2->context());
// Check that the first context's resource is also on the second.