mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-05 04:06:11 -05:00
add 10bit color to strip_alpha_channel()
This commit is contained in:
parent
128eb56dc4
commit
52298c8a3c
1 changed files with 2 additions and 0 deletions
|
|
@ -381,6 +381,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