summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2006-09-18 18:11:42 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2006-09-18 18:11:42 +0000
commit3345ab8ccfd2abab61668290c3fe00f942906039 (patch)
tree6f72c3bcc52b9aa4f1f95a2fc0fd2c94e59d1334
parentcd3c9febda30c0d69048bc774b5a234fd39ca850 (diff)
fix bzflag crashes
-rw-r--r--src/mesa/drivers/dri/i915/i830_vtbl.c3
-rw-r--r--src/mesa/drivers/dri/i915/i915_vtbl.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i915/i830_vtbl.c b/src/mesa/drivers/dri/i915/i830_vtbl.c
index 2bf958509b..64c1d58dc1 100644
--- a/src/mesa/drivers/dri/i915/i830_vtbl.c
+++ b/src/mesa/drivers/dri/i915/i830_vtbl.c
@@ -215,6 +215,9 @@ i830_reduced_primitive_state(struct intel_context *intel, GLenum rprim)
i830->intel.reduced_primitive = rprim;
if (st1 != i830->state.Stipple[I830_STPREG_ST1]) {
+ if (intel->prim.flush)
+ intel->prim.flush(intel);
+
I830_STATECHANGE(i830, I830_UPLOAD_STIPPLE);
i830->state.Stipple[I830_STPREG_ST1] = st1;
}
diff --git a/src/mesa/drivers/dri/i915/i915_vtbl.c b/src/mesa/drivers/dri/i915/i915_vtbl.c
index c29875b502..9fbdf76fed 100644
--- a/src/mesa/drivers/dri/i915/i915_vtbl.c
+++ b/src/mesa/drivers/dri/i915/i915_vtbl.c
@@ -74,6 +74,9 @@ i915_reduced_primitive_state(struct intel_context *intel, GLenum rprim)
i915->intel.reduced_primitive = rprim;
if (st1 != i915->state.Stipple[I915_STPREG_ST1]) {
+ if (intel->prim.flush)
+ intel->prim.flush(intel);
+
I915_STATECHANGE(i915, I915_UPLOAD_STIPPLE);
i915->state.Stipple[I915_STPREG_ST1] = st1;
}