Ver código fonte

added glXGetProcAddressARB()

tags/mesa_3_3
Brian Paul 27 anos atrás
pai
commit
e7d9d97471
1 arquivos alterados com 24 adições e 1 exclusões
  1. 24
    1
      src/mesa/drivers/x11/glxapi.c

+ 24
- 1
src/mesa/drivers/x11/glxapi.c Ver arquivo

@@ -1,4 +1,4 @@
/* $Id: glxapi.c,v 1.9 1999/11/28 20:18:50 brianp Exp $ */
/* $Id: glxapi.c,v 1.10 1999/12/10 15:16:49 brianp Exp $ */

/*
* Mesa 3-D graphics library
@@ -34,6 +34,7 @@

#include <assert.h>
#include <stdlib.h>
#include "glapi.h"
#include "glxapi.h"


@@ -781,6 +782,8 @@ static struct name_address_pair GLX_functions[] = {
{ "glXSet3DfxModeMESA", (GLvoid *) glXSet3DfxModeMESA },
#endif

{ "glXGetProcAddressARB", (GLvoid *) glXGetProcAddressARB },

{ NULL, NULL } /* end of list */
};

@@ -799,3 +802,23 @@ _glxapi_get_proc_address(const char *funcName)
}
return NULL;
}



/*
* This function does not get dispatched through the dispatch table
* since it's really a "meta" function.
*/
void (*glXGetProcAddressARB(const GLubyte *procName))()
{
typedef void (*gl_function)();
gl_function f;

f = (gl_function) _glxapi_get_proc_address((const char *) procName);
if (f) {
return f;
}

f = (gl_function) _glapi_get_proc_address((const char *) procName);
return f;
}

Carregando…
Cancelar
Salvar