mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 05:28:05 +02:00
Add check for mask == NULL to the one routine missing it.
This commit is contained in:
parent
10432bcc0a
commit
714be699be
1 changed files with 11 additions and 2 deletions
|
|
@ -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] );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue