summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@hinata.boston.redhat.com>2007-05-14 17:07:16 -0400
committerKristian Høgsberg <krh@redhat.com>2007-10-10 18:46:51 -0400
commit295dc2d225ccac1951c0fcc2c08119f31d1b575c (patch)
treea005f34b8e42b4a2f43b65dd7c8d8143b36b9856 /src
parent64106d0d9aeefa6974317042b6bc3e5eaabac5a2 (diff)
Stop passing in unused fbconfigs to createNewScreen.
Diffstat (limited to 'src')
-rw-r--r--src/glx/x11/glxext.c4
-rw-r--r--src/mesa/drivers/dri/common/dri_util.c5
-rw-r--r--src/mesa/drivers/dri/common/dri_util.h11
3 files changed, 1 insertions, 19 deletions
diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c
index 8c12ae254a..ee8e238bec 100644
--- a/src/glx/x11/glxext.c
+++ b/src/glx/x11/glxext.c
@@ -957,7 +957,6 @@ CallCreateNewScreen(Display *dpy, int scrn, __GLXscreenConfigs *psc,
err_extra = NULL;
psp = (*createNewScreen)(scrn,
&psc->driScreen,
- psc->configs,
& ddx_version,
& dri_version,
& drm_version,
@@ -968,8 +967,7 @@ CallCreateNewScreen(Display *dpy, int scrn, __GLXscreenConfigs *psc,
& interface_methods,
& driver_modes );
- filter_modes( & psc->configs,
- driver_modes );
+ filter_modes(&psc->configs, driver_modes);
_gl_context_modes_destroy( driver_modes );
}
}
diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c
index 9c96392654..84a6d819de 100644
--- a/src/mesa/drivers/dri/common/dri_util.c
+++ b/src/mesa/drivers/dri/common/dri_util.c
@@ -657,9 +657,6 @@ static void driDestroyScreen(__DRIscreen *screen)
(void)drmUnmap((drmAddress)psp->pSAREA, SAREA_MAX);
(void)drmUnmap((drmAddress)psp->pFB, psp->fbSize);
(void)drmCloseOnce(psp->fd);
- if ( psp->modes != NULL ) {
- (*dri_interface->destroyContextModes)( psp->modes );
- }
_mesa_free(psp);
}
@@ -699,7 +696,6 @@ static void driDestroyScreen(__DRIscreen *screen)
*/
PUBLIC
void * __DRI_CREATE_NEW_SCREEN( int scrn, __DRIscreen *psc,
- const __GLcontextModes * modes,
const __DRIversion * ddx_version,
const __DRIversion * dri_version,
const __DRIversion * drm_version,
@@ -720,7 +716,6 @@ void * __DRI_CREATE_NEW_SCREEN( int scrn, __DRIscreen *psc,
return NULL;
psp->psc = psc;
- psp->modes = NULL;
/*
** NOT_DONE: This is used by the X server to detect when the client
diff --git a/src/mesa/drivers/dri/common/dri_util.h b/src/mesa/drivers/dri/common/dri_util.h
index f56f1fa96a..5ac2eea722 100644
--- a/src/mesa/drivers/dri/common/dri_util.h
+++ b/src/mesa/drivers/dri/common/dri_util.h
@@ -459,17 +459,6 @@ struct __DRIscreenPrivateRec {
void *private;
/**
- * GLX visuals / FBConfigs for this screen. These are stored as a
- * linked list.
- *
- * \note
- * This field is \b only used in conjunction with the old interfaces. If
- * the new interfaces are used, this field will be set to \c NULL and will
- * not be dereferenced.
- */
- __GLcontextModes *modes;
-
- /**
* Pointer back to the \c __DRIscreen that contains this structure.
*/