mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-07 04:06:14 -05:00
add 10bit color to strip_alpha_channel() in backend/drm/renderer.c
This commit is contained in:
parent
52298c8a3c
commit
aed7bd0126
1 changed files with 2 additions and 0 deletions
|
|
@ -203,6 +203,8 @@ static uint32_t strip_alpha_channel(uint32_t format) {
|
|||
switch (format) {
|
||||
case DRM_FORMAT_ARGB8888:
|
||||
return DRM_FORMAT_XRGB8888;
|
||||
case DRM_FORMAT_ARGB2101010:
|
||||
return DRM_FORMAT_XRGB2101010;
|
||||
default:
|
||||
return DRM_FORMAT_INVALID;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue