summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2008-12-23 20:56:08 +0100
committerMaarten Maathuis <madman2003@gmail.com>2008-12-23 20:56:08 +0100
commit912cff32ff0bf5aa47854bcdd4e58ef7b10023f0 (patch)
treec1d26a46245a222195e7be4f062cb084651ea6f7
parent41348f4721b2f2d52fe46298d380c1502f91a4a1 (diff)
pNv->FBMap is already set
- You run the risk of getting another pointer if you map it twice.
-rw-r--r--src/nv_driver.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nv_driver.c b/src/nv_driver.c
index e8537bd..01bd471 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -2053,9 +2053,7 @@ NVScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
} else {
pNv->ShadowPtr = NULL;
displayWidth = pScrn->displayWidth;
- nouveau_bo_map(pNv->FB, NOUVEAU_BO_RDWR);
- FBStart = pNv->FB->map;
- nouveau_bo_unmap(pNv->FB);
+ FBStart = pNv->FBMap;
}
switch (pScrn->bitsPerPixel) {