st/mesa: re-do binding flags in st_ChooseTextureFormat(), again
authorBrian Paul <brianp@vmware.com>
Fri, 23 Apr 2010 19:13:27 +0000 (13:13 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 23 Apr 2010 19:16:37 +0000 (13:16 -0600)
commit4aa4fe8e2103ee43e77f404ef790125dd4d690e5
tree141c70737375944663586e98d772385aac204203
parent8283db88414f600e66510de713382c36899d4b03
st/mesa: re-do binding flags in st_ChooseTextureFormat(), again

Try to specify render target bindings flags first.  If that fails, try
again with just sampler view binding.  Note that we try to create the
texture resource with render target binding flags later when we allocate
the texture.  Then, in FBO validation, we check if we can actually render
to the textures.  If that fails, we generate GL_FRAMEBUFFER_UNSUPPORTED_EXT.

Changes suggested by Jose.
src/mesa/state_tracker/st_format.c