st/mesa: fix format query for GL_ARB_texture_rg
authorBrian Paul <brianp@vmware.com>
Thu, 14 Feb 2013 19:24:02 +0000 (12:24 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 15 Feb 2013 16:25:14 +0000 (09:25 -0700)
commit4be5a067527107a383596c28f14bd76492c1cb4b
treeff5e226cc7aaaf342f60037b84850eb173537c49
parentc37992c54d753e732783f712dea2d483450371dd
st/mesa: fix format query for GL_ARB_texture_rg

The GL_ARB_texture_rg spec says that we need to support both texturing
and rendering for the GL_RED and GL_RG formats.  So move the format
check up into the rendertarget_mapping[] list.  Also, add
PIPE_FORMAT_R8_UNORM to the list of formats required.

Note: This is a candidate for the stable branches.

Reviewed-by: Marek Olšák <maraeo@gmail.com>
src/mesa/state_tracker/st_extensions.c