[Mesa-dev] [PATCH 18/19] mesa/main: Make no-op dispatch function public
Ian Romanick
idr at freedesktop.org
Wed Sep 5 15:09:13 PDT 2012
From: Ian Romanick <ian.d.romanick at intel.com>
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
src/mesa/main/context.c | 6 +++---
src/mesa/main/context.h | 2 ++
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index c0e6bc7..7e74a38 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -843,8 +843,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,
@@ -876,7 +876,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 e238752..f0b4471 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 );
--
1.7.11.4
More information about the mesa-dev
mailing list