From: Michel Dänzer Date: Fri, 25 Sep 2009 18:59:44 +0000 (+0200) Subject: intel: Handle GL_RGB8 for glCopyTex(Sub)Image. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=151e0c0aeaa78f4eb6a87d2b3dd86b4807db1523;p=mesa.git intel: Handle GL_RGB8 for glCopyTex(Sub)Image. Avoids an unnecessary fallback. --- diff --git a/src/mesa/drivers/dri/intel/intel_tex_copy.c b/src/mesa/drivers/dri/intel/intel_tex_copy.c index 028b49c14d3..74f7f58bbe4 100644 --- a/src/mesa/drivers/dri/intel/intel_tex_copy.c +++ b/src/mesa/drivers/dri/intel/intel_tex_copy.c @@ -74,6 +74,7 @@ get_teximage_source(struct intel_context *intel, GLenum internalFormat) case GL_RGBA: case GL_RGBA8: case GL_RGB: + case GL_RGB8: return intel_readbuf_region(intel); default: return NULL;