glx: only advertise GLX_INTEL_swap_event if it's supported
authorZack Rusin <zackr@vmware.com>
Fri, 25 Jan 2013 01:48:12 +0000 (17:48 -0800)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Wed, 13 Feb 2013 17:46:39 +0000 (18:46 +0100)
commit63f858943084b5cbeb20cce96ccae3c25e633663
treee45485d6a5ae2dc0260e2b12140f8a549bd06f34
parent1151cdfa9eede5f8b69865d5764b5aa3eb3f1cf7
glx: only advertise GLX_INTEL_swap_event if it's supported

Only drivers supporting DRI2 version >=4 support GLX_INTEL_swap_event.
So lets mark it as such otherwise applications which use this extension
(i.e. everything based on Clutter, e.g. gnome-shell) break horribly on
drivers supporting DRI2 versions only up to 3.

Note: This is a candidate for the 9.0 branch.

Reviewed-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit dbb2d192de33064ae6cdb799d71c5ac89a6ea8ff)
src/glx/dri2_glx.c