Mesa (master): intel: intel_texture_drawpixels() can' t handle GL_DEPTH_STENCIL.

Michel Dänzer daenzer at kemper.freedesktop.org
Thu Jun 11 10:10:43 UTC 2009


Module: Mesa
Branch: master
Commit: 3885b708fdbb7bbd5dd3a247c41fb9a75ee7c057
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3885b708fdbb7bbd5dd3a247c41fb9a75ee7c057

Author: Michel Dänzer <daenzer at vmware.com>
Date:   Thu Jun 11 12:09:10 2009 +0200

intel: intel_texture_drawpixels() can't handle GL_DEPTH_STENCIL.

Fixes glean depthStencil test.

---

 src/mesa/drivers/dri/intel/intel_pixel_draw.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_pixel_draw.c b/src/mesa/drivers/dri/intel/intel_pixel_draw.c
index 7cda6ad..46d27f1 100644
--- a/src/mesa/drivers/dri/intel/intel_pixel_draw.c
+++ b/src/mesa/drivers/dri/intel/intel_pixel_draw.c
@@ -96,7 +96,7 @@ intel_texture_drawpixels(GLcontext * ctx,
    /* We don't have a way to generate fragments with stencil values which
     * will set the resulting stencil value.
     */
-   if (format == GL_STENCIL_INDEX)
+   if (format == GL_STENCIL_INDEX || format == GL_DEPTH_STENCIL)
       return GL_FALSE;
 
    /* Check that we can load in a texture this big. */




More information about the mesa-commit mailing list