summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-11-27 04:02:32 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-11-27 04:02:32 +0000
commit209bd3a5b41c2bc4fa6ec4667e6acbbb32101d98 (patch)
tree8c951c3f793d52adff6fffaf785b404532fefc27
parent7ee79c80ea19a7df6069265fc3656f0b29e78d7a (diff)
make get_static_proc_address() return a _glapi_proc
-rw-r--r--src/mesa/glapi/glapi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c
index 3c72c3873d..621c15a33b 100644
--- a/src/mesa/glapi/glapi.c
+++ b/src/mesa/glapi/glapi.c
@@ -511,14 +511,14 @@ extern const GLubyte gl_dispatch_functions_start[];
* Return dispatch function address the named static (built-in) function.
* Return NULL if function not found.
*/
-static const GLvoid *
+static const _glapi_proc
get_static_proc_address(const char *funcName)
{
const glprocs_table_t * const f = find_entry( funcName );
if ( f != NULL ) {
- return gl_dispatch_functions_start
- + (X86_DISPATCH_FUNCTION_SIZE * f->Offset);
+ return (_glapi_proc) (gl_dispatch_functions_start
+ + (X86_DISPATCH_FUNCTION_SIZE * f->Offset));
}
else {
return NULL;