dri/nouveau: Allow to render to XRGB8888 textures.

Signed-off-by: Francisco Jerez <currojerez@riseup.net>
This commit is contained in:
Andrew Randrianasulu 2010-03-01 01:46:32 +01:00 committed by Francisco Jerez
parent d2ac3d5e79
commit 949587d169
1 changed files with 2 additions and 0 deletions

View 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: