diff options
author | Brian Paul <[email protected]> | 2010-01-15 14:19:23 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-01-15 14:19:25 -0700 |
commit | 73856817973caab283427c52152672f524c49a07 (patch) | |
tree | 7f08158a7a6035d2750c89dcf642ebef1c22f5e2 /src/glw/GLwMDrawAP.h | |
parent | 79a5a2839029eef23f4c238fec6878b5f87ceec3 (diff) |
swrast: fix broken _swrast_depth_clamp_span()
The integer Z clamping range depends on the number of bits
in the Z buffer because that's the scale factor used when we
transform NDC coords by the viewport/depth range.
Fixes fd.o bug #25972 but only for Z buffers up to a depth
of 30 bits. Beyond that we get into messy integer overflow
issues and things fall apart.
Diffstat (limited to 'src/glw/GLwMDrawAP.h')
0 files changed, 0 insertions, 0 deletions