diff options
author | Simon Ser <contact@emersion.fr> | 2021-02-16 19:17:18 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-02-23 16:09:26 +0100 |
commit | 549435aee52164b925716283ce38597de85bc2bf (patch) | |
tree | c3f2850589ef4431fcda4f78fb0aaf1e6cb10b1b /include | |
parent | fab396f1494f6ed24d9ad14f1bbcda9d7f616c39 (diff) |
render/gles2: replace wlr_gles2_texture.wl_format with drm_format
Diffstat (limited to 'include')
-rw-r--r-- | include/render/gles2.h | 5 |
1 files changed, 2 insertions, 3 deletions
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); |