Add check for mask == NULL to the one routine missing it.

This commit is contained in:
Keith Whitwell 2005-05-12 09:07:12 +00:00
parent 10432bcc0a
commit 714be699be

View file

@ -153,8 +153,17 @@ static void TAG(WriteDepthPixels)( GLcontext *ctx,
#else
HW_CLIPLOOP()
{
for ( i = 0 ; i < n ; i++ ) {
if ( mask[i] ) {
if ( mask ) {
for ( i = 0 ; i < n ; i++ ) {
if ( mask[i] ) {
const int fy = Y_FLIP( y[i] );
if ( CLIPPIXEL( x[i], fy ) )
WRITE_DEPTH( x[i], fy, depth[i] );
}
}
}
else {
for ( i = 0 ; i < n ; i++ ) {
const int fy = Y_FLIP( y[i] );
if ( CLIPPIXEL( x[i], fy ) )
WRITE_DEPTH( x[i], fy, depth[i] );