Add case for GL_QUADS in i915_reduced_primitive_state().
authorBrian <brian.paul@tungstengraphics.com>
Fri, 6 Jul 2007 22:50:13 +0000 (16:50 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Fri, 6 Jul 2007 22:55:40 +0000 (16:55 -0600)
The t_dd_tritemp.h code can emit GL_QUADS primitives.  We need to catch
that case to determine if polygon stipple should be enabled.
Fixes bug reported by Carlos DiĆ³genes on 4 July 2007.

src/mesa/drivers/dri/i915/i915_vtbl.c
src/mesa/drivers/dri/i915tex/i915_vtbl.c

index b0e5f87fc75cc996d469025330aa1951f2536660..cc8a605e50537c21868f96b1e4dd18035b84eb89 100644 (file)
@@ -64,6 +64,7 @@ static void i915_reduced_primitive_state( intelContextPtr intel,
     st1 &= ~ST1_ENABLE;
 
     switch (rprim) {
+    case GL_QUADS: /* from RASTERIZE(GL_QUADS) in t_dd_tritemp.h */
     case GL_TRIANGLES:
        if (intel->ctx.Polygon.StippleFlag &&
           intel->hw_stipple)
index f80e8d6327f3dc071a8b04af47334f204d9a5599..ad333b490b78ef4b808a6e36884fb8ab6aba2849 100644 (file)
@@ -61,6 +61,7 @@ i915_reduced_primitive_state(struct intel_context *intel, GLenum rprim)
    st1 &= ~ST1_ENABLE;
 
    switch (rprim) {
+   case GL_QUADS: /* from RASTERIZE(GL_QUADS) in t_dd_tritemp.h */
    case GL_TRIANGLES:
       if (intel->ctx.Polygon.StippleFlag && intel->hw_stipple)
          st1 |= ST1_ENABLE;