mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
removed GL_EXT_get_proc_address
This commit is contained in:
parent
b80429e49e
commit
d95e2eb1a8
1 changed files with 6 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: fakeglx.c,v 1.10 1999/10/14 18:47:37 brianp Exp $ */
|
||||
/* $Id: fakeglx.c,v 1.11 1999/10/16 11:32:15 brianp Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -1538,6 +1538,11 @@ void (*Fake_glXGetProcAddress( const GLubyte *procName ))()
|
|||
GLuint i;
|
||||
|
||||
/* First, look for core library functions */
|
||||
GLfunction f = (GLfunction) gl_get_proc_address(procName);
|
||||
if (f)
|
||||
return f;
|
||||
|
||||
/* Second, look for GLX funtion */
|
||||
for (i = 0; procTable[i].address; i++) {
|
||||
if (strcmp((const char *) procName, procTable[i].name) == 0)
|
||||
return (GLfunction) procTable[i].address;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue