From: Andrew Randrianasulu Date: Mon, 1 Mar 2010 00:46:32 +0000 (+0100) Subject: dri/nouveau: Allow to render to XRGB8888 textures. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=949587d1692f4e528f54b598ffc22a1906e4baf3;p=mesa.git dri/nouveau: Allow to render to XRGB8888 textures. Signed-off-by: Francisco Jerez --- diff --git a/src/mesa/drivers/dri/nouveau/nouveau_fbo.c b/src/mesa/drivers/dri/nouveau/nouveau_fbo.c index 1db8c5dd8de..846478650e2 100644 --- a/src/mesa/drivers/dri/nouveau/nouveau_fbo.c +++ b/src/mesa/drivers/dri/nouveau/nouveau_fbo.c @@ -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: