mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-28 08:56:32 -05:00
render/gles2: replace wlr_gles2_texture.wl_format with drm_format
This commit is contained in:
parent
fab396f149
commit
549435aee5
4 changed files with 13 additions and 12 deletions
|
|
@ -472,7 +472,8 @@ static bool gles2_read_pixels(struct wlr_renderer *wlr_renderer,
|
|||
struct wlr_gles2_renderer *renderer =
|
||||
gles2_get_renderer_in_context(wlr_renderer);
|
||||
|
||||
const struct wlr_gles2_pixel_format *fmt = get_gles2_format_from_wl(wl_fmt);
|
||||
const struct wlr_gles2_pixel_format *fmt =
|
||||
get_gles2_format_from_drm(convert_wl_shm_format_to_drm(wl_fmt));
|
||||
if (fmt == NULL) {
|
||||
wlr_log(WLR_ERROR, "Cannot read pixels: unsupported pixel format");
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue