r300: fix clear mask to not use sw if not necessary

This commit is contained in:
Dave Airlie 2009-07-12 21:35:24 +10:00
parent b484c71036
commit dfecf217fa

View file

@ -646,6 +646,8 @@ static void r300Clear(GLcontext * ctx, GLbitfield mask)
if (colorMask == ~0)
tri_mask |= (mask & BUFFER_BITS_COLOR);
else
tri_mask |= (mask & (BUFFER_BIT_FRONT_LEFT | BUFFER_BIT_BACK_LEFT));
/* HW stencil */