dri/nouveau: Allow to render to XRGB8888 textures.
authorAndrew Randrianasulu <randrianasulu@gmail.com>
Mon, 1 Mar 2010 00:46:32 +0000 (01:46 +0100)
committerFrancisco Jerez <currojerez@riseup.net>
Mon, 1 Mar 2010 01:06:13 +0000 (02:06 +0100)
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/drivers/dri/nouveau/nouveau_fbo.c

index 1db8c5dd8de34a964a23010e3f1b4e488f5d03f9..846478650e2f350ba64829d71c01eebdcf721490 100644 (file)
@@ -215,6 +215,8 @@ get_tex_format(struct gl_texture_image *ti)
        switch (ti->TexFormat) {
        case MESA_FORMAT_ARGB8888:
                return GL_RGBA8;
+       case MESA_FORMAT_XRGB8888:
+               return GL_RGB8;
        case MESA_FORMAT_RGB565:
                return GL_RGB5;
        default: