summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorAndrew Randrianasulu <[email protected]>2010-03-01 01:46:32 +0100
committerFrancisco Jerez <[email protected]>2010-03-01 02:06:13 +0100
commit949587d1692f4e528f54b598ffc22a1906e4baf3 (patch)
treeb4812fa67cf947bd8853778b92658074b67fe88b /src/mesa/drivers
parentd2ac3d5e79bdf5a32a2dca135403d963ac6c83e4 (diff)
dri/nouveau: Allow to render to XRGB8888 textures.
Signed-off-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-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 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: