Browse Source

Remove now unused getProcAddress from DRIinterfaceMethods.

tags/mesa_7_1_rc1
Kristian Høgsberg 18 years ago
parent
commit
594006d8b2
2 changed files with 0 additions and 53 deletions
  1. 0
    38
      include/GL/internal/dri_interface.h
  2. 0
    15
      src/glx/x11/glxext.c

+ 0
- 38
include/GL/internal/dri_interface.h View File

@@ -169,39 +169,6 @@ struct __DRImediaStreamCounterExtensionRec {
};


/**
* \name Functions provided by the driver loader.
*/
/*@{*/
/**
* Type of a pointer to \c glXGetScreenDriver, as returned by
* \c glXGetProcAddress. This function is used to get the name of the DRI
* driver for the specified screen of the specified display. The driver
* name is typically used with \c glXGetDriverConfig.
*
* \sa glXGetScreenDriver, glXGetProcAddress, glXGetDriverConfig
*/
typedef const char * (* PFNGLXGETSCREENDRIVERPROC) (__DRIscreen *screen);

/**
* Type of a pointer to \c glXGetDriverConfig, as returned by
* \c glXGetProcAddress. This function is used to get the XML document
* describing the configuration options available for the specified driver.
*
* \sa glXGetDriverConfig, glXGetProcAddress, glXGetScreenDriver
*/
typedef const char * (* PFNGLXGETDRIVERCONFIGPROC) (const char *driverName);

/**
* Type of a pointer to \c glxEnableExtension, as returned by
* \c __DRIinterfaceMethods::getProcAddress. This function is used to enable
* a GLX extension on the specified screen.
*/
typedef void (* PFNGLXSCRENABLEEXTENSIONPROC) (__DRIscreen *screen,
const char *name);
/*@}*/


/**
* Macros for building symbol and strings. Standard CPP two step...
*/
@@ -263,11 +230,6 @@ struct __DRIversionRec {
typedef void (*__DRIfuncPtr)(void);

struct __DRIinterfaceMethodsRec {
/**
* Get pointer to named function.
*/
__DRIfuncPtr (*getProcAddress)( const char * proc_name );

/**
* Create a list of \c __GLcontextModes structures.
*/

+ 0
- 15
src/glx/x11/glxext.c View File

@@ -691,19 +691,6 @@ filter_modes( __GLcontextModes ** server_modes,
return modes_count;
}


/**
* Implement \c __DRIinterfaceMethods::getProcAddress.
*/
static __DRIfuncPtr get_proc_address( const char * proc_name )
{
if (strcmp( proc_name, "glxEnableExtension" ) == 0) {
return (__DRIfuncPtr) __glXScrEnableExtension;
}
return NULL;
}

#ifdef XDAMAGE_1_1_INTERFACE
static GLboolean has_damage_post(Display *dpy)
{
@@ -798,8 +785,6 @@ __glXDRIGetDrawableInfo(__DRIdrawable *drawable,
* Table of functions exported by the loader to the driver.
*/
static const __DRIinterfaceMethods interface_methods = {
get_proc_address,

_gl_context_modes_create,
_gl_context_modes_destroy,


Loading…
Cancel
Save