intel: check if stencil test is enabled in intel_stencil_drawpixels()
authorBrian Paul <brianp@vmware.com>
Mon, 26 Jan 2009 21:22:30 +0000 (14:22 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 26 Jan 2009 21:22:30 +0000 (14:22 -0700)
src/mesa/drivers/dri/intel/intel_pixel_draw.c

index 0e83afa645144af74025c408dd5c36c1783342a7..bb36649dacde68690f06814c4a4ced704bbc9df5 100644 (file)
@@ -92,7 +92,7 @@ intel_texture_drawpixels(GLcontext * ctx,
       return GL_FALSE;
    }
 
-   /* We don't have a way to generate fragments with stencil values which *
+   /* We don't have a way to generate fragments with stencil values which
     * will set the resulting stencil value.
     */
    if (format == GL_STENCIL_INDEX)
@@ -225,6 +225,10 @@ intel_stencil_drawpixels(GLcontext * ctx,
       return GL_FALSE;
    }
 
+   /* We don't support stencil testing/ops here */
+   if (ctx->Stencil.Enabled)
+      return GL_FALSE;
+
    /* We use FBOs for our wrapping of the depthbuffer into a color
     * destination.
     */