diff options
Diffstat (limited to 'meta-xilinx-mali400/dynamic-layers/qt5-layer/recipes-qt/qt5/qtwayland/0003-qwaylandeglwindow.cpp-Bind-the-context-before-callin.patch')
-rw-r--r-- | meta-xilinx-mali400/dynamic-layers/qt5-layer/recipes-qt/qt5/qtwayland/0003-qwaylandeglwindow.cpp-Bind-the-context-before-callin.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-xilinx-mali400/dynamic-layers/qt5-layer/recipes-qt/qt5/qtwayland/0003-qwaylandeglwindow.cpp-Bind-the-context-before-callin.patch b/meta-xilinx-mali400/dynamic-layers/qt5-layer/recipes-qt/qt5/qtwayland/0003-qwaylandeglwindow.cpp-Bind-the-context-before-callin.patch new file mode 100644 index 00000000..c29edab4 --- /dev/null +++ b/meta-xilinx-mali400/dynamic-layers/qt5-layer/recipes-qt/qt5/qtwayland/0003-qwaylandeglwindow.cpp-Bind-the-context-before-callin.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 7067fce80a6e863532a86a5aeb9d6f53e538b387 Mon Sep 17 00:00:00 2001 | ||
2 | From: Madhurkiran Harikrishnan <madhurkiran.harikrishnan@xilinx.com> | ||
3 | Date: Wed, 5 Sep 2018 14:08:16 -0700 | ||
4 | Subject: [PATCH 3/3] qwaylandeglwindow.cpp: Bind the context before calling | ||
5 | eglDestroySurface | ||
6 | |||
7 | Call eglMakeCurrent to bind the context to the current rendering thread | ||
8 | before calling eglDestroySurface to avoid a crash caused by the post | ||
9 | processing activity of GPU driver. | ||
10 | |||
11 | Signed-off-by: Madhurkiran Harikrishnan <madhurkiran.harikrishnan@xilinx.com> | ||
12 | Upstream-Status: Pending | ||
13 | --- | ||
14 | src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp | 2 ++ | ||
15 | 1 file changed, 2 insertions(+) | ||
16 | |||
17 | diff --git a/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp b/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp | ||
18 | index 6b5c532..77cc433 100644 | ||
19 | --- a/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp | ||
20 | +++ b/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp | ||
21 | @@ -171,6 +171,8 @@ void QWaylandEglWindow::doInvalidateSurface() | ||
22 | void QWaylandEglWindow::invalidateSurface() | ||
23 | { | ||
24 | if (m_eglSurface) { | ||
25 | + eglMakeCurrent(m_clientBufferIntegration->eglDisplay(), EGL_NO_SURFACE, | ||
26 | + EGL_NO_SURFACE, EGL_NO_CONTEXT); | ||
27 | eglDestroySurface(m_clientBufferIntegration->eglDisplay(), m_eglSurface); | ||
28 | m_eglSurface = 0; | ||
29 | } | ||
30 | -- | ||
31 | 2.7.4 | ||
32 | |||