glx: Explicitly reject servers that only support GLX 1.0
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 29 Nov 2011 02:31:21 +0000 (18:31 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 19 Dec 2011 22:55:31 +0000 (14:55 -0800)
commite4be406f09fcb3756cd0e8dd0539f62bafb1bcca
tree0014520581e827e96b2bcc9741e0e1ae3d276d1e
parenta832aa5ba097253f53983e3f1186b71626d164ae
glx: Explicitly reject servers that only support GLX 1.0

__glXInitialize calls AllocAndFetchScreenConfigs.
AllocAndFetchScreenConfigs unconditionally sends a glXQuerySeverString
request to the server.  This request is only supported with GLX 1.1 or
later, so we were already implicitly incompatible with GLX 1.0
servers.  How many more similar bugs lurk in the code that nobody has
noticed in years?

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glx/glxext.c