mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 10:18:05 +02:00
xlib: Use PIPE_FORMAT_R8G8B8A8_UNORM(_REV) as appropriate.
This commit is contained in:
parent
a2bcdb7e50
commit
88e640fc14
1 changed files with 2 additions and 2 deletions
|
|
@ -274,10 +274,10 @@ choose_pixel_format(XMesaVisual v)
|
|||
&& v->BitsPerPixel == 32) {
|
||||
if (native_byte_order) {
|
||||
/* no byteswapping needed */
|
||||
return 0 /* PIXEL_FORMAT_U_A8_B8_G8_R8 */;
|
||||
return PIPE_FORMAT_R8G8B8A8_UNORM;
|
||||
}
|
||||
else {
|
||||
return PIPE_FORMAT_R8G8B8A8_UNORM;
|
||||
return PIPE_FORMAT_R8G8B8A8_UNORM_REV;
|
||||
}
|
||||
}
|
||||
else if ( GET_REDMASK(v) == 0xff0000
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue