diff options
author | Brian Paul <[email protected]> | 2009-08-05 14:13:48 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-08-05 14:13:48 -0600 |
commit | 1f713059934c2365a42aadfdca49213b36a7de90 (patch) | |
tree | e116f5f41dfde926be870dfc439a7dfbaa0ded06 /src/mesa/drivers | |
parent | 3905119b4743eb5d284236cc237ee2c19ae3c5c8 (diff) | |
parent | 5b3428d7453eec8e8a5344e22113774dea1dc456 (diff) |
Merge branch 'mesa_7_5_branch'
Conflicts:
src/mesa/main/state.c
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_batchbuffer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_batchbuffer.c b/src/mesa/drivers/dri/intel/intel_batchbuffer.c index e94b8368cde..6aa36d10b12 100644 --- a/src/mesa/drivers/dri/intel/intel_batchbuffer.c +++ b/src/mesa/drivers/dri/intel/intel_batchbuffer.c @@ -201,6 +201,11 @@ _intel_batchbuffer_flush(struct intel_batchbuffer *batch, const char *file, drm_intel_bo_reference(intel->first_post_swapbuffers_batch); } + if (intel->first_post_swapbuffers_batch == NULL) { + intel->first_post_swapbuffers_batch = intel->batch->buf; + drm_intel_bo_reference(intel->first_post_swapbuffers_batch); + } + if (used == 0) { batch->cliprect_mode = IGNORE_CLIPRECTS; return; |