reverse a bogus patch
authorAlan Hourihane <alanh@tungstengraphics.com>
Wed, 31 Aug 2005 15:11:21 +0000 (15:11 +0000)
committerAlan Hourihane <alanh@tungstengraphics.com>
Wed, 31 Aug 2005 15:11:21 +0000 (15:11 +0000)
src/mesa/drivers/dri/unichrome/via_screen.c

index de2f5ea07d9695ac86fd05e834483f4f34929365..1b2e22ef299b4730ad2ef0ac6c1b5a2c479bd088 100644 (file)
@@ -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");