summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/x11/fakeglx.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>1999-09-11 11:33:45 +0000
committerBrian Paul <[email protected]>1999-09-11 11:33:45 +0000
commit89a42b7e736bd9b0ab090906cab0cd047a6ec12e (patch)
tree2ef1ae3f412e62d7709375d1be306e2a34b2d66f /src/mesa/drivers/x11/fakeglx.c
parent585a68c82b9d87ea094143e91fab722070b3dc73 (diff)
added GLX_EXT_get_proc_address
Diffstat (limited to 'src/mesa/drivers/x11/fakeglx.c')
-rw-r--r--src/mesa/drivers/x11/fakeglx.c28
1 files changed, 27 insertions, 1 deletions
diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c
index 2704e35ad59..108c5570191 100644
--- a/src/mesa/drivers/x11/fakeglx.c
+++ b/src/mesa/drivers/x11/fakeglx.c
@@ -1,4 +1,4 @@
-/* $Id: fakeglx.c,v 1.2 1999/09/03 11:53:33 keithw Exp $ */
+/* $Id: fakeglx.c,v 1.3 1999/09/11 11:35:11 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -1472,3 +1472,29 @@ void Fake_glXDummyFunc( void )
(void) HPCR_DRGB;
(void) kernel1;
}
+
+
+GLfunction Fake_glXGetProcAddress( const GLubyte *procName )
+{
+ struct proc {
+ const char *name;
+ void *address;
+ };
+ static struct proc procTable[] = {
+ { "glXGetProcAddressEXT", glXGetProcAddressEXT }, /* myself! */
+ { "glXReleaseBuffersMESA", glXReleaseBuffersMESA },
+ { "glXReleaseBuffersMESA", glXReleaseBuffersMESA },
+ { "glXCopySubBufferMESA", glXCopySubBufferMESA },
+ /* NOTE: GLX_SGI_video_sync not implemented in Mesa */
+ { NULL, NULL } /* end of list token */
+ };
+ GLuint i;
+
+ /* First, look for core library functions */
+ for (i = 0; procTable[i].address; i++) {
+ if (strcmp((const char *) procName, procTable[i].name) == 0)
+ return (GLfunction) procTable[i].address;
+ }
+
+ return NULL;
+}