From a9a483b43ec090408148d069bc184c0a21323654 Mon Sep 17 00:00:00 2001 From: Zou Nan hai Date: Fri, 1 Feb 2008 17:36:56 +0800 Subject: [intel] use _mesa_copy_rect for upload compressed texture, this fix bad texture issue in some games(UT and quake). --- src/mesa/drivers/dri/intel/intel_regions.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/mesa/drivers/dri/intel/intel_regions.h') diff --git a/src/mesa/drivers/dri/intel/intel_regions.h b/src/mesa/drivers/dri/intel/intel_regions.h index b6a3b5a739..0d1dabe9ca 100644 --- a/src/mesa/drivers/dri/intel/intel_regions.h +++ b/src/mesa/drivers/dri/intel/intel_regions.h @@ -122,4 +122,14 @@ dri_bo *intel_region_buffer(struct intel_context *intel, struct intel_region *region, GLuint flag); +void _mesa_copy_rect(GLubyte * dst, + GLuint cpp, + GLuint dst_pitch, + GLuint dst_x, + GLuint dst_y, + GLuint width, + GLuint height, + const GLubyte * src, + GLuint src_pitch, GLuint src_x, GLuint src_y); + #endif -- cgit v1.2.3