projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
893ea47
)
i915: fix carsh in i830_emit_state. (bug #17766)
author
Xiang, Haihao
<haihao.xiang@intel.com>
Tue, 21 Oct 2008 02:30:39 +0000
(10:30 +0800)
committer
Xiang, Haihao
<haihao.xiang@intel.com>
Tue, 21 Oct 2008 02:30:39 +0000
(10:30 +0800)
src/mesa/drivers/dri/i915/i830_vtbl.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i915/i830_vtbl.c
b/src/mesa/drivers/dri/i915/i830_vtbl.c
index 773a8b4dd0136a9b07e3a570d29ee7208b1f639e..3c9851e63fcbc8aca4dcee08721b80a7fcc45d2f 100644
(file)
--- 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++)