mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
render/gles2: Fixup dropping has_alpha from pixel_format
Fixes: 71fb55f3
("render/pixel-format: Move has_alpha into it's own array")
This commit is contained in:
parent
71fb55f3bf
commit
60af3b6b78
2 changed files with 2 additions and 4 deletions
|
@ -141,9 +141,7 @@ const struct wlr_gles2_pixel_format *get_gles2_format_from_gl(
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct wlr_pixel_format_info *drm_fmt =
|
if (pixel_format_has_alpha(formats[i].drm_format) != alpha) {
|
||||||
drm_get_pixel_format_info(formats[i].drm_format);
|
|
||||||
if (drm_fmt->has_alpha != alpha) {
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -330,7 +330,7 @@ static struct wlr_texture *gles2_texture_from_pixels(
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
texture->target = GL_TEXTURE_2D;
|
texture->target = GL_TEXTURE_2D;
|
||||||
texture->has_alpha = drm_fmt->has_alpha;
|
texture->has_alpha = pixel_format_has_alpha(fmt->drm_format);
|
||||||
texture->drm_format = fmt->drm_format;
|
texture->drm_format = fmt->drm_format;
|
||||||
|
|
||||||
GLint internal_format = fmt->gl_internalformat;
|
GLint internal_format = fmt->gl_internalformat;
|
||||||
|
|
Loading…
Reference in a new issue