OSDN Git Service

glx: Be more tolerant in glXImportContext (v2)
authorAdam Jackson <ajax@redhat.com>
Tue, 26 Sep 2017 20:38:31 +0000 (16:38 -0400)
committerAdam Jackson <ajax@redhat.com>
Wed, 27 Sep 2017 14:11:37 +0000 (10:11 -0400)
commit08521629503356a5cfe8e673b32ece7cb4aefff2
tree2841153f450707bf31b90ed2e1d25f301132c895
parent23a09b4f67e1284f79a791a23bd18162f0753709
glx: Be more tolerant in glXImportContext (v2)

Ugh the GLX code. __GLX_MAX_CONTEXT_PROPS is 3 because glxproto.h is
just a pile of ancient runes, so when the server begins sending more
than 3 context properties this code refuses to work _at all_.  Which is
all just silly. If _XReply succeeds, it will have buffered the whole
reply, we can just walk through each property one at a time.

v2: Now with no arbitrary limits. (Eric Anholt)

Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glx/glxcmds.c