summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Randrianasulu <randrianasulu@gmail.com>2010-03-01 01:46:32 +0100
committerFrancisco Jerez <currojerez@riseup.net>2010-03-01 02:06:13 +0100
commit949587d1692f4e528f54b598ffc22a1906e4baf3 (patch)
treeb4812fa67cf947bd8853778b92658074b67fe88b /src
parentd2ac3d5e79bdf5a32a2dca135403d963ac6c83e4 (diff)
dri/nouveau: Allow to render to XRGB8888 textures.
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/nouveau/nouveau_fbo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_fbo.c b/src/mesa/drivers/dri/nouveau/nouveau_fbo.c
index 1db8c5dd8d..846478650e 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: