mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
mask/disable stencil/accum clears in fxDDClear()
This commit is contained in:
parent
3da3b9e84c
commit
aa51bb083b
1 changed files with 4 additions and 1 deletions
|
|
@ -180,13 +180,16 @@ static GLbitfield fxDDClear(GLcontext *ctx, GLbitfield mask, GLboolean all,
|
|||
const FxU16 clearD = (FxU16) (ctx->Depth.Clear * 0xffff);
|
||||
GLbitfield softwareMask = mask & (DD_STENCIL_BIT | DD_ACCUM_BIT);
|
||||
|
||||
/* we can't clear stencil or accum buffers */
|
||||
mask &= ~(DD_STENCIL_BIT | DD_ACCUM_BIT);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_DRIVER) {
|
||||
fprintf(stderr,"fxmesa: fxDDClear(%d,%d,%d,%d)\n", (int) x, (int) y,
|
||||
(int) width, (int) height);
|
||||
}
|
||||
|
||||
if (colorMask != 0xffffffff) {
|
||||
/* do color buffer clears in software */
|
||||
/* do masked color buffer clears in software */
|
||||
softwareMask |= (mask & (DD_FRONT_LEFT_BIT | DD_BACK_LEFT_BIT));
|
||||
mask &= ~(DD_FRONT_LEFT_BIT | DD_BACK_LEFT_BIT);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue