Initialize depth pointer correctly.

This commit is contained in:
Keith Whitwell 2004-12-30 16:05:07 +00:00
parent 58cc2e9124
commit 8f1ba083ba

View file

@ -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