diff options
author | Xiang, Haihao <[email protected]> | 2008-08-05 11:28:54 +0800 |
---|---|---|
committer | Xiang, Haihao <[email protected]> | 2008-08-05 11:34:26 +0800 |
commit | 8e8019b49ab137403ba92aef3e286f4e27049ad5 (patch) | |
tree | 2bd99df8f04c891a4da08c8fd971fb95598eae51 /src/mesa/drivers/glide/fxddspan.c | |
parent | a3024caff1c790cf9f24476926aa62198f1e7b53 (diff) |
dri: Fix write/read depth buffer issue under 16bpp mode. See bug #16646
Diffstat (limited to 'src/mesa/drivers/glide/fxddspan.c')
-rw-r--r-- | src/mesa/drivers/glide/fxddspan.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/glide/fxddspan.c b/src/mesa/drivers/glide/fxddspan.c index 3ea9f73dd20..d3a58a301c2 100644 --- a/src/mesa/drivers/glide/fxddspan.c +++ b/src/mesa/drivers/glide/fxddspan.c @@ -275,6 +275,8 @@ #undef BYTESPERPIXEL #define BYTESPERPIXEL 2 +#define VALUE_TYPE GLushort + #define WRITE_DEPTH( _x, _y, d ) \ *(GLushort *)(buf + _x*BYTESPERPIXEL + _y*pitch) = d @@ -302,6 +304,8 @@ #undef BYTESPERPIXEL #define BYTESPERPIXEL 4 +#define VALUE_TYPE GLuint + #define WRITE_DEPTH( _x, _y, d ) \ *(GLuint *)(buf + _x*BYTESPERPIXEL + _y*pitch) = d << 8 |