mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
make _glapi_get_proc_address() return NULL if function doesn't start with gl prefix
This commit is contained in:
parent
d49acd629b
commit
a6ed6f48e6
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue