aboutsummaryrefslogtreecommitdiff
path: root/render/gles2/pixel_format.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/gles2/pixel_format.c')
-rw-r--r--render/gles2/pixel_format.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/render/gles2/pixel_format.c b/render/gles2/pixel_format.c
index 1d9884e3..5cdf8c99 100644
--- a/render/gles2/pixel_format.c
+++ b/render/gles2/pixel_format.c
@@ -141,9 +141,7 @@ const struct wlr_gles2_pixel_format *get_gles2_format_from_gl(
continue;
}
- const struct wlr_pixel_format_info *drm_fmt =
- drm_get_pixel_format_info(formats[i].drm_format);
- if (drm_fmt->has_alpha != alpha) {
+ if (pixel_format_has_alpha(formats[i].drm_format) != alpha) {
continue;
}