summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXiang, Haihao <[email protected]>2008-10-21 10:30:39 +0800
committerXiang, Haihao <[email protected]>2008-10-21 10:30:39 +0800
commitb4bf9acc32ac8693b1fdf80f351523a468ba6bd1 (patch)
tree9c71fc574a3bf795b5e348008a0ef63c4abee859
parent893ea47e44279a29a2aa58eaaa8a757043d717aa (diff)
i915: fix carsh in i830_emit_state. (bug #17766)
-rw-r--r--src/mesa/drivers/dri/i915/i830_vtbl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i915/i830_vtbl.c b/src/mesa/drivers/dri/i915/i830_vtbl.c
index 773a8b4dd01..3c9851e63fc 100644
--- a/src/mesa/drivers/dri/i915/i830_vtbl.c
+++ b/src/mesa/drivers/dri/i915/i830_vtbl.c
@@ -449,7 +449,8 @@ i830_emit_state(struct intel_context *intel)
aper_array[aper_count++] = intel->batch->buf;
if (dirty & I830_UPLOAD_BUFFERS) {
aper_array[aper_count++] = state->draw_region->buffer;
- aper_array[aper_count++] = state->depth_region->buffer;
+ if (state->depth_region)
+ aper_array[aper_count++] = state->depth_region->buffer;
}
for (i = 0; i < I830_TEX_UNITS; i++)