st/mesa: choose 3-component float formats before 4-component formats
authorBrian Paul <brianp@vmware.com>
Wed, 27 Apr 2011 15:06:07 +0000 (09:06 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 27 Apr 2011 15:06:31 +0000 (09:06 -0600)
commit66d95919d55098b96281e5144b6839627ad3d053
tree6a756b88fd7e30a388ec045f4f3c811284b8cafc
parent48aa7725893ee75af10b8519e8a018e94334c7cc
st/mesa: choose 3-component float formats before 4-component formats

If GL_RGB16F or GL_RGB32F is specified let's try the 3-component float
texture formats before trying the 4-component ones.  Before this,
GL_RGB16/32F were treated the same as GL_RGBA16/32F.

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