intel: Handle GL_RGB8 for glCopyTex(Sub)Image.
authorMichel Dänzer <daenzer@vmware.com>
Fri, 25 Sep 2009 18:59:44 +0000 (20:59 +0200)
committerMichel Dänzer <daenzer@vmware.com>
Fri, 25 Sep 2009 19:00:28 +0000 (21:00 +0200)
Avoids an unnecessary fallback.

src/mesa/drivers/dri/intel/intel_tex_copy.c

index 028b49c14d36e8e9083a886fa4c312f02c5fdd9c..74f7f58bbe4c595dfe3f1a89a01c986b99a55cc3 100644 (file)
@@ -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;