Re: [Mesa-dev] [PATCH] st/mesa: fix format query for GL_ARB_texture_rg

2013-02-14 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Thu, Feb 14, 2013 at 8:26 PM, Brian Paul wrote: > 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_FOR

[Mesa-dev] [PATCH] st/mesa: fix format query for GL_ARB_texture_rg

2013-02-14 Thread Brian Paul
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 branch