break;
case GL_STENCIL_TEST:
imesa->dirty |= SAVAGE_UPLOAD_CTX;
- if (state)
- {
-#if HW_STENCIL
- if(imesa->hw_stencil)
- {
-#endif /* end if HW_STENCIL */
- if(!imesa->hw_stencil)
- FALLBACK (ctx, SAVAGE_FALLBACK_STENCIL, GL_TRUE);
-
+ if (!imesa->hw_stencil)
+ FALLBACK (ctx, SAVAGE_FALLBACK_STENCIL, state);
#if HW_STENCIL
- imesa->regs.s4.stencilCtrl.ni.stencilEn=GL_TRUE;
- }
-#endif /* end if HW_STENCIL */
- }
-
- else
- {
-#if HW_STENCIL
- if(imesa->hw_stencil)
- {
- imesa->regs.s4.stencilCtrl.ni.stencilEn=GL_FALSE;
- }
-#endif
- FALLBACK (ctx, SAVAGE_FALLBACK_STENCIL, GL_FALSE);
- }
+ else
+ imesa->regs.s4.stencilCtrl.ni.stencilEn =
+ state ? GL_TRUE : GL_FALSE;
+#endif
break;
case GL_FOG:
imesa->dirty |= SAVAGE_UPLOAD_CTX;
imesa->scissor = state;
imesa->dirty |= SAVAGE_UPLOAD_CLIPRECTS;
break;
+ case GL_STENCIL_TEST:
+ FALLBACK (ctx, SAVAGE_FALLBACK_STENCIL, state);
+ break;
case GL_FOG:
imesa->dirty |= SAVAGE_UPLOAD_CTX;
savageDDFogfv(ctx,0,0);