From c1635c11797f77c012e2a2006ed6e07a05bf6f63 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Sat, 20 Mar 2021 01:05:26 +0100 Subject: [PATCH] Explicitly preserve buffer contents in EglDmabuf --- src/platformsupport/scenes/opengl/egl_dmabuf.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platformsupport/scenes/opengl/egl_dmabuf.cpp b/src/platformsupport/scenes/opengl/egl_dmabuf.cpp index 09e948f096..d235e73926 100644 --- a/src/platformsupport/scenes/opengl/egl_dmabuf.cpp +++ b/src/platformsupport/scenes/opengl/egl_dmabuf.cpp @@ -232,6 +232,8 @@ EGLImage EglDmabuf::createImage(const QVector &planes, } } + attribs << EGL_IMAGE_PRESERVED_KHR << EGL_TRUE; + attribs << EGL_NONE; EGLImage image = eglCreateImageKHR(m_backend->eglDisplay(),