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 1db8c5d..8464786 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: