st/mesa: added cases for GL_COMPRESSED_RED/RG in st_choose_format()

This commit is contained in:
Brian Paul 2010-10-21 16:39:07 -06:00
parent d4a296caaa
commit b66a92de8c
1 changed files with 2 additions and 0 deletions

View File

@ -547,6 +547,8 @@ st_choose_format(struct pipe_screen *screen, GLenum internalFormat,
}
return PIPE_FORMAT_NONE;
case GL_COMPRESSED_RED:
case GL_COMPRESSED_RG:
case GL_COMPRESSED_RGB:
/* can only sample from compressed formats */
if (bindings & ~PIPE_BIND_SAMPLER_VIEW)