Procházet zdrojové kódy

make _glapi_get_proc_address() return NULL if function doesn't start with gl prefix

tags/vtx-0-2-21112003-freeze
Brian Paul před 23 roky
rodič
revize
a6ed6f48e6
1 změnil soubory, kde provedl 5 přidání a 1 odebrání
  1. 5
    1
      src/mesa/glapi/glapi.c

+ 5
- 1
src/mesa/glapi/glapi.c Zobrazit soubor

@@ -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;

Načítá se…
Zrušit
Uložit