summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/intel/intel_tex_copy.c
diff options
context:
space:
mode:
authorMichel Dänzer <daenzer@vmware.com>2009-09-25 20:59:44 +0200
committerMichel Dänzer <daenzer@vmware.com>2009-09-25 21:00:28 +0200
commit151e0c0aeaa78f4eb6a87d2b3dd86b4807db1523 (patch)
treef694ad89f841a50625a1601d451c0bb7bbade3dd /src/mesa/drivers/dri/intel/intel_tex_copy.c
parent46da1f2c9b67e3b4c3659f2d029140b639571407 (diff)
intel: Handle GL_RGB8 for glCopyTex(Sub)Image.
Avoids an unnecessary fallback.
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_tex_copy.c')
-rw-r--r--src/mesa/drivers/dri/intel/intel_tex_copy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_tex_copy.c b/src/mesa/drivers/dri/intel/intel_tex_copy.c
index 028b49c14d..74f7f58bbe 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;