GLX/DRI2: Do not expose INTEL_swap_event without swap control
authorZack Rusin <zackr@vmware.com>
Thu, 14 Feb 2013 23:06:57 +0000 (15:06 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 18 Mar 2013 18:23:57 +0000 (11:23 -0700)
commit190b0321510b99d4738915f540cea5c0c51e07e2
treefcb48234f7fffb2658922881fe617bdd6f0f5eb7
parent116f020102fd6c2a603069a639b113dfa31b48b7
GLX/DRI2: Do not expose INTEL_swap_event without swap control

Swap events depent on the implementation of ScheduleSwap. By
unconditionally enabling GLX_INTEL_swap_event we're breaking
the system with drivers that don't support it because the apps
are forever stuck waiting for an event that will never be
delivered. So lets enable the extension only if the hooks it
depends on are actually there.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
glx/glxdri2.c