intel: GL_FALSE on a BO if it won't be modified when mapping this BO. (thanks Eric).
authorXiang, Haihao <haihao.xiang@intel.com>
Sat, 25 Oct 2008 22:31:33 +0000 (06:31 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Sat, 25 Oct 2008 22:38:27 +0000 (06:38 +0800)
src/mesa/drivers/dri/intel/intel_blit.c

index 081d1dd..3c1f7f6 100644 (file)
@@ -299,7 +299,7 @@ intelEmitCopyBlit(struct intel_context *intel,
        }
 
        dri_bo_map(dst_buffer, GL_TRUE);
-       dri_bo_map(src_buffer, GL_TRUE);
+       dri_bo_map(src_buffer, GL_FALSE);
        _mesa_copy_rect((GLubyte *)dst_buffer->virtual + dst_offset,
                        cpp,
                        dst_pitch,