mesa/include/GL
Sylvain Munaut 0fa85b983f mesa/st, dri2, wgl, glx: Restore flush_objects interop backward compat
In commit 1396dc1c a new output field was added as a parameter, but this
is a problem since the signature of the function are not versionned.

The flush function didn't have a versionned output struct. So what I'm
proposing here is that if the version of the input argument is new enough
(bumped to 2 here), then we re-use the existing argument, which until now
was directly a pointer to GLsync, and instead use it as a pointer to a
versioned struct.

We're just changing one pointer type to another, so in C, this should
be fine AFAIK.

Fixes: 1396dc1c

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26315>
2023-11-21 23:15:32 +00:00
..
internal mesa/st, dri2, wgl, glx: Restore flush_objects interop backward compat 2023-11-21 23:15:32 +00:00
gl.h mesa: sync GLAPIENTRY with KHRONOS_APIENTRY in GL/gl.h 2022-11-03 16:07:31 +00:00
glcorearb.h Update OpenGL headers 2023-06-07 20:47:03 +00:00
glext.h mesa: Introduce MESA_texture_const_bandwidth 2023-10-14 17:28:28 +00:00
glx.h glx: Remove dead declarations from <GL/glx.h> 2023-01-03 23:36:26 +00:00
glxext.h Update OpenGL headers 2023-06-07 20:47:03 +00:00
mesa_glinterop.h mesa/st, dri2, wgl, glx: Restore flush_objects interop backward compat 2023-11-21 23:15:32 +00:00
osmesa.h
wglext.h Update OpenGL headers 2023-06-07 20:47:03 +00:00