summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2004-12-30 16:05:07 +0000
committerKeith Whitwell <[email protected]>2004-12-30 16:05:07 +0000
commit8f1ba083baa14182d508cdb9f94e2e41726984e9 (patch)
tree3b53e35ac7639f7f47a29ac257c4cbea1175208d
parent58cc2e9124dc76492f2e7d8843f74df511e4054e (diff)
Initialize depth pointer correctly.
-rw-r--r--src/mesa/drivers/dri/unichrome/via_span.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/unichrome/via_span.c b/src/mesa/drivers/dri/unichrome/via_span.c
index 07d20adc0f9..253e80cddef 100644
--- a/src/mesa/drivers/dri/unichrome/via_span.c
+++ b/src/mesa/drivers/dri/unichrome/via_span.c
@@ -148,7 +148,7 @@
__DRIdrawablePrivate *dPriv = vmesa->driDrawable; \
GLuint depth_pitch = vmesa->depth.pitch; \
GLuint height = dPriv->h; \
- char *buf = (char *)(vmesa->depth.map)
+ char *buf = (char *)(vmesa->depth.map + (vmesa->drawXoff * vmesa->depth.bpp/8))
#define LOCAL_STENCIL_VARS LOCAL_DEPTH_VARS