mesa/include/GL
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
..
internal dri_interface: Update __DRItexBufferExtensionRec to version 3 2014-04-28 19:11:27 +01:00
gl.h mesa: remove unused #pragma export on/off lines 2014-04-28 17:16:42 -06:00
gl_mangle.h Regenerate gl_mangle.h. 2014-05-02 10:07:04 -07:00
glext.h mesa: update glext.h to version 20140313 2014-04-18 14:30:57 -07:00
glx.h glxext: Send the Drawable's ID in the GLX_BufferSwapComplete event 2014-07-03 18:03:11 -07:00
glx_mangle.h mesa: remove outdated version lines in comments 2013-06-05 08:54:27 -06:00
glxext.h glx: Update glxext.h to revision 25407 2014-03-07 16:59:57 -08:00
osmesa.h osmesa: add support for postprocess filters 2013-11-18 08:56:35 -07:00
wglext.h mesa: upgrade wglext.h to version 22 2010-09-14 09:40:23 -06:00
wmesa.h mesa: remove outdated version lines in comments 2013-06-05 08:54:27 -06:00