From: Ian Romanick Date: Thu, 2 Aug 2012 05:18:16 +0000 (-0700) Subject: mesa/main: Make no-op dispatch function public X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d0e142834948307ccfad6b038814618604390e2a;p=mesa.git mesa/main: Make no-op dispatch function public Signed-off-by: Ian Romanick --- diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index c6880a4b9e4..e55e2fdee3b 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -832,8 +832,8 @@ update_default_objects(struct gl_context *ctx) * This helps prevents a segfault when someone calls a GL function without * first checking if the extension's supported. */ -static int -generic_nop(void) +int +_mesa_generic_nop(void) { GET_CURRENT_CONTEXT(ctx); _mesa_error(ctx, GL_INVALID_OPERATION, @@ -865,7 +865,7 @@ _mesa_alloc_dispatch_table(int size) _glapi_proc *entry = (_glapi_proc *) table; GLint i; for (i = 0; i < numEntries; i++) { - entry[i] = (_glapi_proc) generic_nop; + entry[i] = (_glapi_proc) _mesa_generic_nop; } } return table; diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h index e2387521f57..f0b4471b140 100644 --- a/src/mesa/main/context.h +++ b/src/mesa/main/context.h @@ -179,6 +179,8 @@ _mesa_finish(struct gl_context *ctx); extern void _mesa_flush(struct gl_context *ctx); +extern int +_mesa_generic_nop(void); extern void GLAPIENTRY _mesa_Finish( void );