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 081d1dd238a2b3c825ac6dcf2e3401756cf6ee96..3c1f7f624565b1f17f9ac3b0146a0b93e4a269fe 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,