From 366b2e5c19109762cbdb3c31ac487826b6dd903a Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Fri, 6 Sep 2019 12:30:19 -0400 Subject: mesa: Eliminate gl_config::rgbMode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Eric Anholt Reviewed-by: Marek Olšák --- src/mesa/drivers/x11/fakeglx.c | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'src/mesa/drivers/x11/fakeglx.c') diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c index af60bfaaa4e..593c8d1f7eb 100644 --- a/src/mesa/drivers/x11/fakeglx.c +++ b/src/mesa/drivers/x11/fakeglx.c @@ -1551,12 +1551,7 @@ get_config( XMesaVisual xmvis, int attrib, int *value, GLboolean fbconfig ) case GLX_RGBA: if (fbconfig) return GLX_BAD_ATTRIBUTE; - if (xmvis->mesa_visual.rgbMode) { - *value = True; - } - else { - *value = False; - } + *value = True; return 0; case GLX_DOUBLEBUFFER: *value = (int) xmvis->mesa_visual.doubleBufferMode; @@ -1618,12 +1613,7 @@ get_config( XMesaVisual xmvis, int attrib, int *value, GLboolean fbconfig ) } else if (xmvis->mesa_visual.level>0) { /* overlay */ - if (xmvis->mesa_visual.rgbMode) { - *value = GLX_TRANSPARENT_RGB_EXT; - } - else { - *value = GLX_TRANSPARENT_INDEX_EXT; - } + *value = GLX_TRANSPARENT_RGB_EXT; } else if (xmvis->mesa_visual.level<0) { /* underlay */ @@ -1691,10 +1681,8 @@ get_config( XMesaVisual xmvis, int attrib, int *value, GLboolean fbconfig ) return GLX_BAD_ATTRIBUTE; if (xmvis->mesa_visual.floatMode) *value = GLX_RGBA_FLOAT_BIT_ARB; - else if (xmvis->mesa_visual.rgbMode) - *value = GLX_RGBA_BIT; else - *value = GLX_COLOR_INDEX_BIT; + *value = GLX_RGBA_BIT; break; case GLX_X_RENDERABLE_SGIX: if (!fbconfig) -- cgit v1.2.3