From ba6cb5d97aac10d2beb1fa3718f3ce86cbf2367f Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Thu, 13 Apr 2017 17:17:45 +0100 Subject: glx: glX_proto_send.py: use correct compile guard GLX_INDIRECT_RENDERING MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The code itself has nothing to do with shared glapi, thus having it behind GLX_SHARED_GLAPI is misleading. Use GLX_INDIRECT_RENDERING instead. The latter macro is set at global scope by the Autotools and Scons build systems. Cc: mesa-stable@lists.freedesktop.org Signed-off-by: Emil Velikov Reviewed-by: Nicolai Hähnle (cherry picked from commit 6177d60a374a3d48969fcb062ac1d82465850cb4) --- src/mapi/glapi/gen/glX_proto_send.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mapi') diff --git a/src/mapi/glapi/gen/glX_proto_send.py b/src/mapi/glapi/gen/glX_proto_send.py index 6115c9b1d85..d458214fb74 100644 --- a/src/mapi/glapi/gen/glX_proto_send.py +++ b/src/mapi/glapi/gen/glX_proto_send.py @@ -382,7 +382,7 @@ const GLuint __glXDefaultPixelStore[9] = { 0, 0, 0, 0, 0, 0, 0, 0, 1 }; procs[n] = func.static_glx_name(n) print """ -#ifdef GLX_SHARED_GLAPI +#ifdef GLX_INDIRECT_RENDERING static const struct proc_pair { @@ -418,7 +418,7 @@ __indirect_get_proc_address(const char *name) return (pair) ? pair->proc : NULL; } -#endif /* GLX_SHARED_GLAPI */ +#endif /* GLX_INDIRECT_RENDERING */ """ return @@ -1113,7 +1113,7 @@ extern _X_HIDDEN NOINLINE FASTCALL GLubyte * __glXSetupVendorRequest( break print '' - print '#ifdef GLX_SHARED_GLAPI' + print '#ifdef GLX_INDIRECT_RENDERING' print 'extern _X_HIDDEN void (*__indirect_get_proc_address(const char *name))(void);' print '#endif' -- cgit v1.2.3