From: Keith Whitwell Date: Thu, 30 Dec 2004 16:05:07 +0000 (+0000) Subject: Initialize depth pointer correctly. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8f1ba083baa14182d508cdb9f94e2e41726984e9;p=mesa.git Initialize depth pointer correctly. --- 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