aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-02-16 19:17:18 +0100
committerSimon Ser <contact@emersion.fr>2021-02-23 16:09:26 +0100
commit549435aee52164b925716283ce38597de85bc2bf (patch)
treec3f2850589ef4431fcda4f78fb0aaf1e6cb10b1b /include
parentfab396f1494f6ed24d9ad14f1bbcda9d7f616c39 (diff)
render/gles2: replace wlr_gles2_texture.wl_format with drm_format
Diffstat (limited to 'include')
-rw-r--r--include/render/gles2.h5
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);