glx: Fix number of property values to read in glXImportContextEXT
authorMichel Dänzer <michel.daenzer@amd.com>
Fri, 1 Jun 2018 16:59:36 +0000 (18:59 +0200)
committerMichel Dänzer <michel@daenzer.net>
Tue, 5 Jun 2018 16:56:43 +0000 (18:56 +0200)
commit6b8f3724c83959e62b1be0330d6d14e58f91dc5b
tree3b4c6ea1ab157988da7b137e53f8838dff45da6e
parentc765c39ea73178c81a8bf88fe57c8d39a01dc57d
glx: Fix number of property values to read in glXImportContextEXT

We were trying to read twice as many as the X server sent us, which
upset XCB:

[xcb] Too much data requested from _XRead
[xcb] This is most likely caused by a broken X extension library
[xcb] Aborting, sorry about that.
glx-free-context: ../../src/xcb_io.c:732: _XRead: Assertion `!xcb_xlib_too_much_data_requested' failed.

Fixing this takes 3 GLX piglit tests from crash to pass.

Fixes: 085216295033 "glx: Be more tolerant in glXImportContext (v2)"
Reviewed-by: Adam Jackson <ajax@redhat.com>
src/glx/glxcmds.c