From 88e640fc14c3146966b6ba886d7f79874e745b35 Mon Sep 17 00:00:00 2001 From: José Fonseca <jfonseca@vmware.com> Date: Mon, 1 Mar 2010 16:28:38 +0000 Subject: xlib: Use PIPE_FORMAT_R8G8B8A8_UNORM(_REV) as appropriate. --- src/gallium/state_trackers/glx/xlib/xm_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gallium/state_trackers/glx/xlib') 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 -- cgit v1.2.3