swrast: add missing call to _swrast_depth_bounds_test()
We were calling this from the CI span function, but not the RGBA span function. I don't know of a test program for the GL_EXT_depth_bounds_test extension...
This commit is contained in:
parent
7385681797
commit
2c5aa02e20
1 changed files with 7 additions and 0 deletions
|
|
@ -1316,6 +1316,13 @@ _swrast_write_rgba_span( GLcontext *ctx, SWspan *span)
|
|||
|
||||
ASSERT(span->end <= MAX_WIDTH);
|
||||
|
||||
/* Depth bounds test */
|
||||
if (ctx->Depth.BoundsTest && fb->Visual.depthBits > 0) {
|
||||
if (!_swrast_depth_bounds_test(ctx, span)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
/* Make sure all fragments are within window bounds */
|
||||
if (span->arrayMask & SPAN_XY) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue