From: Xiang, Haihao Date: Sat, 25 Oct 2008 22:31:33 +0000 (+0800) Subject: intel: GL_FALSE on a BO if it won't be modified when mapping this BO. (thanks Eric). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2a877411dbe35abdd8c15fb4821d9232619d89cc;p=mesa.git intel: GL_FALSE on a BO if it won't be modified when mapping this BO. (thanks Eric). --- diff --git a/src/mesa/drivers/dri/intel/intel_blit.c b/src/mesa/drivers/dri/intel/intel_blit.c index 081d1dd238a..3c1f7f62456 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,