glx: unify GLX_SGIX_pbuffer aliased declarations
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 5 Dec 2016 19:52:45 +0000 (19:52 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 18 Jan 2017 16:01:14 +0000 (16:01 +0000)
commit3ecd6c6abdf16b3639ee741dde234c85747dcaf2
treefceb6b17afe8daed294733df06a9f4fc7a811f35
parent9898bcf3f46a60d121c4b5aa37ea1dea417b3547
glx: unify GLX_SGIX_pbuffer aliased declarations

No point in having an identical code in two places.

Not to mention that the Apple one incorrectly uses GLXDrawable as pbuf
type. This change is both API and ABI safe since the header uses the
correct GLXPbufferSGIX and both types are a typedef of the same
primitive XID.

Cc: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Jeremy Sequoia <jeremyhu@apple.com>
src/glx/apple/glx_empty.c
src/glx/glx_pbuffer.c