From 549435aee52164b925716283ce38597de85bc2bf Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 16 Feb 2021 19:17:18 +0100 Subject: render/gles2: replace wlr_gles2_texture.wl_format with drm_format --- include/render/gles2.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/render') diff --git a/include/render/gles2.h b/include/render/gles2.h index 00ee34fb..067bdd31 100644 --- a/include/render/gles2.h +++ b/include/render/gles2.h @@ -107,11 +107,10 @@ struct wlr_gles2_texture { bool has_alpha; // Only affects target == GL_TEXTURE_2D - enum wl_shm_format wl_format; // used to interpret upload data + uint32_t drm_format; // used to interpret upload data }; -const struct wlr_gles2_pixel_format *get_gles2_format_from_wl( - enum wl_shm_format fmt); +const struct wlr_gles2_pixel_format *get_gles2_format_from_drm(uint32_t fmt); const struct wlr_gles2_pixel_format *get_gles2_format_from_gl( GLint gl_format, GLint gl_type, bool alpha); const enum wl_shm_format *get_gles2_wl_formats(size_t *len); -- cgit v1.2.3