fixed pointer arithmetic error in glCopyPixels
[mesa.git] / src / mesa / main / stencil.c
index 1520fe8c9669fe9f81edb2fd81ec1b7b9b7f619e..55a08388697c4176361700f4913aa5f08f7d071b 100644 (file)
@@ -1,10 +1,10 @@
-/* $Id: stencil.c,v 1.25 2001/03/03 20:33:28 brianp Exp $ */
+/* $Id: stencil.c,v 1.27 2001/05/09 16:34:09 brianp Exp $ */
 
 /*
  * Mesa 3-D graphics library
  * Version:  3.5
  *
- * Copyright (C) 1999-2000  Brian Paul   All Rights Reserved.
+ * Copyright (C) 1999-2001  Brian Paul   All Rights Reserved.
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
@@ -46,7 +46,7 @@ _mesa_ClearStencil( GLint s )
 {
    GET_CURRENT_CONTEXT(ctx);
    ASSERT_OUTSIDE_BEGIN_END(ctx);
-   
+
    if (ctx->Stencil.Clear == (GLstencil) s)
       return;
 
@@ -134,7 +134,6 @@ _mesa_StencilOp(GLenum fail, GLenum zfail, GLenum zpass)
       case GL_INCR:
       case GL_DECR:
       case GL_INVERT:
-         ctx->Stencil.FailFunc = fail;
          break;
       case GL_INCR_WRAP_EXT:
       case GL_DECR_WRAP_EXT:
@@ -197,4 +196,3 @@ _mesa_StencilOp(GLenum fail, GLenum zfail, GLenum zpass)
       (*ctx->Driver.StencilOp)(ctx, fail, zfail, zpass);
    }
 }
-