Use the routines supplied in the __DRIinterfaceMethods structure to create a
authorIan Romanick <idr@us.ibm.com>
Thu, 28 Jul 2005 23:33:18 +0000 (23:33 +0000)
committerIan Romanick <idr@us.ibm.com>
Thu, 28 Jul 2005 23:33:18 +0000 (23:33 +0000)
destroy __GLcontextModes structures.  This eliminates the need for DRI
drivers to ever link with glcontextmodes.c.

src/mesa/drivers/dri/Makefile.template
src/mesa/drivers/dri/common/dri_util.c
src/mesa/drivers/dri/r300/Makefile

index 8182ae2da9abce960a8ce6ad0e11ac2ce3043623..0880e73caf920664dd023a90ace93c4e93c76bf9 100644 (file)
@@ -10,8 +10,7 @@ COMMON_SOURCES = \
         ../common/vblank.c \
         ../common/dri_util.c \
         ../common/xmlconfig.c \
-        ../common/drirenderbuffer.c \
-        ../common/glcontextmodes.c
+        ../common/drirenderbuffer.c
 
 ifeq ($(WINDOW_SYSTEM),dri)
 WINOBJ=../dri_client/dri.a
index c201d44c6c670a179102f7070d6cd86fe8c0a6c9..4bb64c53f874e4ce0ad65e4cfea407e131ca324b 100644 (file)
@@ -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);
     }
index 421973247443efbedc74757525d1da22f14c270f..57c7fc7aa95b7a85156680e7feb9198d20a9fd4b 100644 (file)
@@ -16,8 +16,7 @@ COMMON_SOURCES = \
        ../common/texmem.c \
        ../common/vblank.c \
        ../common/xmlconfig.c \
-       ../common/dri_util.c \
-       ../common/glcontextmodes.c
+       ../common/dri_util.c
 
 DRIVER_SOURCES = \
                 radeon_screen.c \