Merge branch 'mesa_7_5_branch'
authorBrian Paul <brianp@vmware.com>
Wed, 5 Aug 2009 20:13:48 +0000 (14:13 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 5 Aug 2009 20:13:48 +0000 (14:13 -0600)
Conflicts:

src/mesa/main/state.c

1  2 
progs/xdemos/glxswapcontrol.c
src/mesa/drivers/dri/intel/intel_batchbuffer.c
src/mesa/main/image.c
src/mesa/state_tracker/st_extensions.c

Simple merge
index e94b8368cde799e601ba4e7715296729bdc98ac0,82a92a9f454bd5c548681194d2050f0fe78b243e..6aa36d10b1203c34c74fce7d439de8ec2ed07cfb
@@@ -195,12 -195,13 +195,17 @@@ _intel_batchbuffer_flush(struct intel_b
  {
     struct intel_context *intel = batch->intel;
     GLuint used = batch->ptr - batch->map;
 -   GLboolean was_locked = intel->locked;
 +
 +   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 (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;
Simple merge