i915: fix carsh in i830_emit_state. (bug #17766)

This commit is contained in:
Xiang, Haihao 2008-10-21 10:30:39 +08:00
parent 893ea47e44
commit b4bf9acc32
1 changed files with 2 additions and 1 deletions

View File

@ -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++)