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 b0e5f87..cc8a605 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 f80e8d6..ad333b4 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;