From 942ec8722d4d903820a5c9b0720f9aff0f938888 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Fri, 23 Apr 2010 11:53:50 -0700 Subject: Fix __glXInitializeVisualConfigFromTags's handling of unrecognized fbconfig __glXInitializeVisualConfigFromTags doesn't skip the payload of unrecognized tags. Instead, it treats the value as if it were the next tag, which can happen if the server's GLX extension is not Mesa's. For example, this falls down when NVIDIA sends a GLX_FLOAT_COMPONENTS_NV = 0 pair, causing __glXInitializeVisualConfigFromTags to bail out early. Signed-off-by: Aaron Plattner Signed-off-by: Ian Romanick --- src/glx/x11/glxext.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c index 5633a3e4a29..bdc6e31a8bf 100644 --- a/src/glx/x11/glxext.c +++ b/src/glx/x11/glxext.c @@ -442,6 +442,8 @@ __glXInitializeVisualConfigFromTags(__GLcontextModes * config, int count, i = count; break; default: + /* Ignore the unrecognized tag's value */ + bp++; break; } } -- cgit v1.2.1