summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2007-03-06 16:54:16 +0100
committerMichel Dänzer <michel@tungstengraphics.com>2007-03-06 16:54:16 +0100
commite972265261c421268e4fb806e587378d0adec577 (patch)
tree2b9072668fbb46e6324cef29673b4c2ccd9b520b
parent3c08bc7d6974a1a6cf5f9cb81898617032966c52 (diff)
Fix build failure.
Not sure how I missed this before... Thanks to Todd Merrill for reporting.
-rw-r--r--src/i830_dri.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/i830_dri.c b/src/i830_dri.c
index bb9de1e8..9931acc4 100644
--- a/src/i830_dri.c
+++ b/src/i830_dri.c
@@ -756,8 +756,9 @@ I830DRIMapScreenRegions(ScrnInfoPtr pScrn, drmI830Sarea *sarea)
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
"[drm] drmAddMap(third_handle) failed. Triple buffering "
"inactive\n");
- i830_free_memory(pI830->third_buffer);
- sarea->third_handle = pI830->third_buffer = NULL;
+ i830_free_memory(pScrn, pI830->third_buffer);
+ pI830->third_buffer = NULL;
+ sarea->third_handle = 0;
} else
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "[drm] Third Buffer = 0x%08x\n",
(int)sarea->third_handle);