mesa/include
Jasper St. Pierre 3ca2119593 glxext: Send the Drawable's ID in the GLX_BufferSwapComplete event
While the official INTEL_swap_event specification says that the drawable
field should contain the GLXDrawable, not the Drawable, the existing
DRI2 code in dri2.c that translates from DRI2_BufferSwapComplete sends out
GLX_BufferSwapComplete with the Drawable's ID, so existing codebases
like Clutter/Cogl rely on getting the Drawable.

Match DRI2's error here and stuff the event with the X Drawable, not
the GLX drawable.

This fixes apps seeing wrong drawables through an indirect GLX context
or with DRI3, which uses the GLX_BufferSwapComplete event directly on
the wire instead of translates Present in mesa.

At the same time, also modify the structure for the event to make sure
that clients don't make the same mistake. This is not an API or ABI
break, as GLXDrawable and Drawable are both typedefs for XID.

Signed-off-by: Jasper St. Pierre <jstpierre@mecheye.net>
Reviewed-by: Axel Davy <axel.davy@ens.fr>
Cc: "10.1 10.2" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit b4dcf87f34)
2014-07-03 18:03:11 -07:00
..
c11 c11/threads: don't include assert.h if the assert macro is already defined 2014-03-19 17:13:31 -06:00
c99 mesa: fixes for MSVC 2013 2013-10-22 08:39:40 -06:00
CL clover: Update OpenCL headers to version 1.2 from Khronos. 2014-04-29 13:01:10 +02:00
EGL egl: Update to revision 24567 of eglext.h 2014-03-17 15:36:03 -07:00
GL glxext: Send the Drawable's ID in the GLX_BufferSwapComplete event 2014-07-03 18:03:11 -07:00
GLES gles: Update glext.h to revision 20798. 2013-07-29 10:34:42 -07:00
GLES2 include/GLES3: add OpenGL ES 3.1 Headers 2014-04-01 09:30:32 -07:00
GLES3 include/GLES3: add OpenGL ES 3.1 Headers 2014-04-01 09:30:32 -07:00
HaikuGL haiku: change atomic int to non-volatile 2014-01-26 18:56:05 -06:00
KHR Update KHRONOS_APICALL for _WIN32 platform. 2010-05-31 11:31:07 +08:00
pci_ids i965: Include marketing names for Broadwell GPUs. 2014-07-03 18:02:00 -07:00
VG st/vega: Update to latest headers. 2010-12-01 11:23:51 +08:00
c99_compat.h scons: Define _ALLOW_KEYWORD_MACROS on MSVC builds. 2013-03-14 19:01:10 +00:00