OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d49acd6
)
make _glapi_get_proc_address() return NULL if function doesn't start with gl prefix
author
Brian Paul
<brian.paul@tungstengraphics.com>
Wed, 27 Aug 2003 14:48:16 +0000
(14:48 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Wed, 27 Aug 2003 14:48:16 +0000
(14:48 +0000)
src/mesa/glapi/glapi.c
patch
|
blob
|
history
diff --git
a/src/mesa/glapi/glapi.c
b/src/mesa/glapi/glapi.c
index
3cb4ccc
..
85330dd
100644
(file)
--- a/
src/mesa/glapi/glapi.c
+++ b/
src/mesa/glapi/glapi.c
@@
-740,8
+740,12
@@
_glapi_get_proc_offset(const char *funcName)
const GLvoid *
_glapi_get_proc_address(const char *funcName)
{
- /* search extension functions first */
GLuint i;
+
+ if (funcName[0] != 'g' || funcName[1] != 'l')
+ return NULL;
+
+ /* search extension functions first */
for (i = 0; i < NumExtEntryPoints; i++) {
if (strcmp(ExtEntryTable[i].Name, funcName) == 0) {
return ExtEntryTable[i].Address;