mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
r300: fallback only if stencil test is enabled
This commit is contained in:
parent
e33e28f52a
commit
3c6bffa761
1 changed files with 3 additions and 8 deletions
|
|
@ -439,14 +439,9 @@ static int r300Fallback(GLcontext * ctx)
|
|||
|
||||
FALLBACK_IF(ctx->RenderMode != GL_RENDER);
|
||||
|
||||
/* If GL_EXT_stencil_two_side is disabled, this fallback check can
|
||||
* be removed.
|
||||
*/
|
||||
FALLBACK_IF(ctx->Stencil.Ref[0] != ctx->Stencil.Ref[back]
|
||||
|| ctx->Stencil.ValueMask[0] !=
|
||||
ctx->Stencil.ValueMask[back]
|
||||
|| ctx->Stencil.WriteMask[0] !=
|
||||
ctx->Stencil.WriteMask[back]);
|
||||
FALLBACK_IF(ctx->Stencil.Enabled && (ctx->Stencil.Ref[0] != ctx->Stencil.Ref[back]
|
||||
|| ctx->Stencil.ValueMask[0] != ctx->Stencil.ValueMask[back]
|
||||
|| ctx->Stencil.WriteMask[0] != ctx->Stencil.WriteMask[back]));
|
||||
|
||||
if (ctx->Extensions.NV_point_sprite || ctx->Extensions.ARB_point_sprite)
|
||||
FALLBACK_IF(ctx->Point.PointSprite);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue