summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2018-10-27 03:02:00 +0200
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2018-10-27 03:02:00 +0200
commit1912876140e33e34203f45ad1d483f1b1c120e16 (patch)
tree21b54af6d889e115a8cc8965e69af242f94e9c18
parente95ef6fdb6401325e5aecd2806788a5dc33a0b47 (diff)
parentc320888ff64d81e5e291eb5db683b000b9fe59a8 (diff)
Merge remote-tracking branch 'origin/5.12' into dev
-rw-r--r--src/plugins/platforms/webgl/qwebglcontext.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/webgl/qwebglcontext.cpp b/src/plugins/platforms/webgl/qwebglcontext.cpp
index 9d48d74..07378a2 100644
--- a/src/plugins/platforms/webgl/qwebglcontext.cpp
+++ b/src/plugins/platforms/webgl/qwebglcontext.cpp
@@ -1570,6 +1570,8 @@ QWebGLFunctionCall *QWebGLContext::createEvent(const QString &functionName, bool
auto context = QOpenGLContext::currentContext();
Q_ASSERT(context);
const auto handle = static_cast<QWebGLContext *>(context->handle());
+ if (!handle)
+ return nullptr;
auto integrationPrivate = QWebGLIntegrationPrivate::instance();
const auto clientData = integrationPrivate->findClientData(handle->currentSurface());
if (!clientData || !clientData->socket