summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2008-10-26 06:31:33 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2008-10-26 06:38:49 +0800
commit8f8892525a560b0e68780d58a1e127b304a31e8b (patch)
tree50e9685b4945470617abfdb644d713290c461dc8
parent1bf94d419805538ac23a4d0b04d31ac5e4487aca (diff)
intel: GL_FALSE on a BO if it won't be modified when mapping this BO. (thanks Eric).intel-2008-q3
(cherry picked from commit 22c9851b94132bc626320dc1131bf52f68e8bb25)
-rw-r--r--src/mesa/drivers/dri/intel/intel_blit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_blit.c b/src/mesa/drivers/dri/intel/intel_blit.c
index 8f7ed233d1..e29c85b502 100644
--- a/src/mesa/drivers/dri/intel/intel_blit.c
+++ b/src/mesa/drivers/dri/intel/intel_blit.c
@@ -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,