diff options
author | Ilia Bozhinov <ammen99@gmail.com> | 2018-11-23 21:20:57 +0100 |
---|---|---|
committer | Ilia Bozhinov <ammen99@gmail.com> | 2018-11-24 10:54:25 +0100 |
commit | fb5691b6cc42cab42d0f15e8fbb25b2e1ff4ad0d (patch) | |
tree | ef46e76a5fa07a924ba51d1f71383d9ddec7330c /include/wlr/render | |
parent | c70b8f64b7f1ea0a603517c7e6852ef3743a483a (diff) |
output: add wlr_output_preferred_read_format()
The read format is dependent on the output, so we first need to make it
current. This fixes a race condition in wlr-screencopy-v1 where a dmabuf
client would cause EGL_NO_SURFACE to be bound at the time when
screencopy needs to query for the preferred format, causing GL errors.
Diffstat (limited to 'include/wlr/render')
-rw-r--r-- | include/wlr/render/wlr_renderer.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/wlr/render/wlr_renderer.h b/include/wlr/render/wlr_renderer.h index 02b4a11e..9c031b7f 100644 --- a/include/wlr/render/wlr_renderer.h +++ b/include/wlr/render/wlr_renderer.h @@ -97,11 +97,6 @@ int wlr_renderer_get_dmabuf_formats(struct wlr_renderer *renderer, int wlr_renderer_get_dmabuf_modifiers(struct wlr_renderer *renderer, int format, uint64_t **modifiers); /** - * Get the preferred format for reading pixels. - */ -bool wlr_renderer_preferred_read_format(struct wlr_renderer *renderer, - enum wl_shm_format *fmt); -/** * Reads out of pixels of the currently bound surface into data. `stride` is in * bytes. * |