mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
Initialize depth pointer correctly.
This commit is contained in:
parent
58cc2e9124
commit
8f1ba083ba
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue