[PATCH xserver 2/2] glx: Fix indirect no-config contexts

Adam Jackson ajax at redhat.com
Tue Feb 20 16:03:46 UTC 2018


We would throw BadValue here for the GLX_SCREEN attribute. The upper
dispatch layer already checks this, we can ignore it here.

Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 glx/glxdri2.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/glx/glxdri2.c b/glx/glxdri2.c
index 25ee9acf92..d402ca860c 100644
--- a/glx/glxdri2.c
+++ b/glx/glxdri2.c
@@ -402,6 +402,9 @@ dri2_convert_glx_attribs(__GLXDRIscreen *screen, unsigned num_attribs,
                 return FALSE;
             }
             break;
+        case GLX_SCREEN:
+            /* already checked for us */
+            break;
         case GLX_CONTEXT_OPENGL_NO_ERROR_ARB:
             /* ignore */
             break;
-- 
2.14.3



More information about the xorg-devel mailing list