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:
Alexander Orzechowski 2023-06-23 17:24:38 -04:00 committed by Simon Ser
parent ae3d7a697c
commit 9118226634
3 changed files with 13 additions and 22 deletions

View file

@ -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;