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)
committerZack Rusin <zackr@vmware.com>
Fri, 25 Jan 2013 03:13:05 +0000 (19:13 -0800)
commitdbb2d192de33064ae6cdb799d71c5ac89a6ea8ff
treebac189b097722b0841ab920529bf35391d175d3f
parentc9343047cfc44039915e0b09fc94bd992559a982
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>
src/glx/dri2_glx.c