mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-17 05:34:14 -04:00
render/gles2: Don't track has_alpha in pixel_format
Why track the alpha here when we can already get that information elsewhere?
This commit is contained in:
parent
ae3d7a697c
commit
9118226634
3 changed files with 13 additions and 22 deletions
|
|
@ -216,7 +216,7 @@ static struct wlr_texture *gles2_texture_from_pixels(
|
|||
return NULL;
|
||||
}
|
||||
texture->target = GL_TEXTURE_2D;
|
||||
texture->has_alpha = fmt->has_alpha;
|
||||
texture->has_alpha = drm_fmt->has_alpha;
|
||||
texture->drm_format = fmt->drm_format;
|
||||
|
||||
GLint internal_format = fmt->gl_internalformat;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue