From cbafed8716d0be11db86f0ee4690c1e16f47c35d Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Wed, 31 Aug 2005 15:11:21 +0000 Subject: [PATCH] reverse a bogus patch --- src/mesa/drivers/dri/unichrome/via_screen.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/unichrome/via_screen.c b/src/mesa/drivers/dri/unichrome/via_screen.c index de2f5ea07d9..1b2e22ef299 100644 --- a/src/mesa/drivers/dri/unichrome/via_screen.c +++ b/src/mesa/drivers/dri/unichrome/via_screen.c @@ -100,7 +100,6 @@ viaInitDriver(__DRIscreenPrivate *sPriv) PFNGLXSCRENABLEEXTENSIONPROC glx_enable_extension = (PFNGLXSCRENABLEEXTENSIONPROC) (*dri_interface->getProcAddress("glxEnableExtension")); void * const psc = sPriv->psc->screenConfigs; - drmAddress map; if (sPriv->devPrivSize != sizeof(VIADRIRec)) { fprintf(stderr,"\nERROR! sizeof(VIADRIRec) does not match passed size from device driver\n"); @@ -151,7 +150,7 @@ viaInitDriver(__DRIscreenPrivate *sPriv) if (drmMap(sPriv->fd, gDRIPriv->regs.handle, gDRIPriv->regs.size, - &map) != 0) { + &viaScreen->reg) != 0) { FREE(viaScreen); sPriv->private = NULL; __driUtilMessage("viaInitDriver: drmMap regs failed"); -- 2.30.2