aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthew Cattell <matthew.cattell@nokia.com>2011-09-13 11:09:31 +0200
committerGunnar Sletta <gunnar.sletta@nokia.com>2011-09-14 10:13:39 +0200
commit6824441666063f015e265f34f87a67c625898df5 (patch)
tree5d39a6201ae09b078528c3f227525423a9b47afc /src
parentf902ecfe6a99aa733cb18b0c435825546f1d18d5 (diff)
Fixed failing test in QSGFocusScope.
added some waits and removed unnecessary lines from autotest Change-Id: I847bde6db5222b12d0f0b88a8c323fd09aad9d7c
Diffstat (limited to 'src')
-rw-r--r--src/declarative/scenegraph/coreapi/qsgrenderer.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/declarative/scenegraph/coreapi/qsgrenderer.cpp b/src/declarative/scenegraph/coreapi/qsgrenderer.cpp
index b81df008f7..af118e0717 100644
--- a/src/declarative/scenegraph/coreapi/qsgrenderer.cpp
+++ b/src/declarative/scenegraph/coreapi/qsgrenderer.cpp
@@ -568,7 +568,10 @@ public:
~QSGRendererVBOGeometryData()
{
- QOpenGLFunctions *func = QOpenGLContext::currentContext()->functions();
+ QOpenGLContext *ctx = QOpenGLContext::currentContext();
+ if (!ctx)
+ return;
+ QOpenGLFunctions *func = ctx->functions();
if (vertexBuffer)
func->glDeleteBuffers(1, &vertexBuffer);
if (indexBuffer)