From 1b65e52fb19599688494e7dcb292ab3bd1eee1b3 Mon Sep 17 00:00:00 2001 From: Daniel Borca Date: Mon, 12 Jan 2004 12:28:05 +0000 Subject: [PATCH] Glide driver (windowed mode) fix for Voodoo2 --- src/mesa/drivers/x11/xm_api.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/x11/xm_api.c b/src/mesa/drivers/x11/xm_api.c index f1d4ea0ccb0..f25c3e3bc61 100644 --- a/src/mesa/drivers/x11/xm_api.c +++ b/src/mesa/drivers/x11/xm_api.c @@ -2237,7 +2237,11 @@ static void FXgetImage( XMesaBuffer b ) xmesa_alloc_back_buffer( b ); } - grLfbWriteColorFormat(GR_COLORFORMAT_ARGB); + /* [dBorca] + * not needed for Voodoo2 anymore. + * should we test fxMesa->bgrOrder? + */ + /* grLfbWriteColorFormat(GR_COLORFORMAT_ARGB); */ if (b->xm_visual->undithered_pf==PF_5R6G5B) { /* Special case: 16bpp RGB */ grLfbReadRegion( GR_BUFFER_FRONTBUFFER, /* src buffer */ @@ -2292,7 +2296,7 @@ static void FXgetImage( XMesaBuffer b ) } } } - grLfbWriteColorFormat(GR_COLORFORMAT_ABGR); + /* grLfbWriteColorFormat(GR_COLORFORMAT_ABGR); */ } #endif -- 2.30.2