From 82e3ecf413704440ea64b3b582d68f82f7b83704 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Thu, 28 Jul 2005 23:33:18 +0000 Subject: Use the routines supplied in the __DRIinterfaceMethods structure to create a destroy __GLcontextModes structures. This eliminates the need for DRI drivers to ever link with glcontextmodes.c. --- src/mesa/drivers/dri/common/dri_util.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/mesa/drivers/dri/common') diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index c201d44c6c..4bb64c53f8 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -31,7 +31,6 @@ #include "dri_util.h" #include "drm_sarea.h" -#include "glcontextmodes.h" #ifndef GLX_OML_sync_control typedef GLboolean ( * PFNGLXGETMSCRATEOMLPROC) (__DRInativeDisplay *dpy, __DRIid drawable, int32_t *numerator, int32_t *denominator); @@ -836,7 +835,7 @@ static void driDestroyScreen(__DRInativeDisplay *dpy, int scrn, void *screenPriv _mesa_free(psp->pDevPriv); (void)drmClose(psp->fd); if ( psp->modes != NULL ) { - _gl_context_modes_destroy( psp->modes ); + (*dri_interface->destroyContextModes)( psp->modes ); } _mesa_free(psp); } -- cgit v1.2.3