~ubuntu-branches/ubuntu/quantal/mesa/quantal

« back to all changes in this revision

Viewing changes to src/mesa/swrast/s_stencil.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-02-21 12:44:07 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: james.westby@ubuntu.com-20070221124407-rgcacs32mycrtadl
ImportĀ upstreamĀ versionĀ 6.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
406
406
 *
407
407
 */
408
408
static GLboolean
409
 
stencil_and_ztest_span(GLcontext *ctx, struct sw_span *span, GLuint face)
 
409
stencil_and_ztest_span(GLcontext *ctx, SWspan *span, GLuint face)
410
410
{
411
411
   struct gl_framebuffer *fb = ctx->DrawBuffer;
412
412
   struct gl_renderbuffer *rb = fb->_StencilBuffer;
900
900
 *         GL_TRUE - one or more fragments passed the testing
901
901
 */
902
902
static GLboolean
903
 
stencil_and_ztest_pixels( GLcontext *ctx, struct sw_span *span, GLuint face )
 
903
stencil_and_ztest_pixels( GLcontext *ctx, SWspan *span, GLuint face )
904
904
{
905
905
   struct gl_framebuffer *fb = ctx->DrawBuffer;
906
906
   struct gl_renderbuffer *rb = fb->_StencilBuffer;
1007
1007
 * GL_FALSE = all fragments failed.
1008
1008
 */
1009
1009
GLboolean
1010
 
_swrast_stencil_and_ztest_span(GLcontext *ctx, struct sw_span *span)
 
1010
_swrast_stencil_and_ztest_span(GLcontext *ctx, SWspan *span)
1011
1011
{
1012
1012
   /* span->facing can only be non-zero if using two-sided stencil */
1013
1013
   ASSERT(ctx->Stencil._TestTwoSide || span->facing == 0);