mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 08:08:06 +02:00
glx: fix compilation error when function name not found
Patch workarounds the problem like commiteec904d29cdid, this fixes compilation on older distributions that still use old header. Fixes:01ba8a8d02("glx: Implement GLX_EXT_no_config_context") Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10447>
This commit is contained in:
parent
d42d7e0df4
commit
e1f3770a5c
1 changed files with 8 additions and 0 deletions
|
|
@ -33,6 +33,14 @@
|
|||
#error This code requires sizeof(uint32_t) == sizeof(int).
|
||||
#endif
|
||||
|
||||
/* An "Atrribs/Attribs" typo was fixed in glxproto.h in Nov 2014.
|
||||
* This is in case we don't have the updated header.
|
||||
*/
|
||||
#if !defined(X_GLXCreateContextAttribsARB) && \
|
||||
defined(X_GLXCreateContextAtrribsARB)
|
||||
#define X_GLXCreateContextAttribsARB X_GLXCreateContextAtrribsARB
|
||||
#endif
|
||||
|
||||
_X_HIDDEN GLXContext
|
||||
glXCreateContextAttribsARB(Display *dpy, GLXFBConfig config,
|
||||
GLXContext share_context, Bool direct,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue