aboutsummaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
Diffstat (limited to 'render')
-rw-r--r--render/egl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/render/egl.c b/render/egl.c
index 9a3ce29c..9fa2add5 100644
--- a/render/egl.c
+++ b/render/egl.c
@@ -525,6 +525,11 @@ EGLImageKHR wlr_egl_create_image_from_dmabuf(struct wlr_egl *egl,
attribs[atti++] = attributes->modifier >> 32;
}
}
+
+ // Our clients don't expect our usage to trash the buffer contents
+ attribs[atti++] = EGL_IMAGE_PRESERVED_KHR;
+ attribs[atti++] = EGL_TRUE;
+
attribs[atti++] = EGL_NONE;
assert(atti < sizeof(attribs)/sizeof(attribs[0]));