silence used var warnings
authorBrian Paul <brian.paul@tungstengraphics.com>
Sun, 22 Oct 2006 22:25:46 +0000 (22:25 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sun, 22 Oct 2006 22:25:46 +0000 (22:25 +0000)
src/mesa/swrast/s_copypix.c

index ec04143214d5118845c4d2dfcd0a63a33673291b..761ab724e91612e06712f8efcf00bf73687592ab 100644 (file)
@@ -845,7 +845,8 @@ fast_copy_pixels(GLcontext *ctx,
       srcRb = srcFb->_DepthBuffer;
       dstRb = dstFb->_DepthBuffer;
    }
-   else if (type == GL_DEPTH_STENCIL_EXT) {
+   else {
+      ASSERT(type == GL_DEPTH_STENCIL_EXT);
       /* XXX correct? */
       srcRb = srcFb->Attachment[BUFFER_DEPTH].Renderbuffer;
       dstRb = dstFb->Attachment[BUFFER_DEPTH].Renderbuffer;