diff options
author | José Fonseca <[email protected]> | 2010-03-01 16:28:38 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-03-01 16:28:38 +0000 |
commit | 88e640fc14c3146966b6ba886d7f79874e745b35 (patch) | |
tree | ea2847813393723d4dd69723beff485fdef990d1 /src/gallium/state_trackers/glx/xlib | |
parent | a2bcdb7e509fde231846f3af09bef38ed1df4068 (diff) |
xlib: Use PIPE_FORMAT_R8G8B8A8_UNORM(_REV) as appropriate.
Diffstat (limited to 'src/gallium/state_trackers/glx/xlib')
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/xm_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/glx/xlib/xm_api.c b/src/gallium/state_trackers/glx/xlib/xm_api.c index 188b885f68a..228e6d0a501 100644 --- a/src/gallium/state_trackers/glx/xlib/xm_api.c +++ b/src/gallium/state_trackers/glx/xlib/xm_api.c @@ -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 |