projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ee79c8
)
make get_static_proc_address() return a _glapi_proc
author
Brian Paul
<brian.paul@tungstengraphics.com>
Sat, 27 Nov 2004 04:02:32 +0000
(
04:02
+0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Sat, 27 Nov 2004 04:02:32 +0000
(
04:02
+0000)
src/mesa/glapi/glapi.c
patch
|
blob
|
history
diff --git
a/src/mesa/glapi/glapi.c
b/src/mesa/glapi/glapi.c
index 3c72c3873d3a0518bfece73f32903db6641435a5..621c15a33ba4bb8276198d5a7042b739caa5d9ad 100644
(file)
--- 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;