aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/context.c
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2012-08-01 22:18:16 -0700
committerIan Romanick <[email protected]>2012-09-28 08:19:54 -0700
commitd0e142834948307ccfad6b038814618604390e2a (patch)
tree7d3b7f32a5dbd9cb18e5e62bc51b4938d8c74df3 /src/mesa/main/context.c
parent9c59d11cd29e5ddb678824738299d452b4147e0e (diff)
mesa/main: Make no-op dispatch function public
Signed-off-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r--src/mesa/main/context.c6
1 files changed, 3 insertions, 3 deletions
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;