mesa: Simplify _mesa_base_fbo_format by making it exceptions to teximages.
authorEric Anholt <eric@anholt.net>
Thu, 13 Jan 2011 18:05:50 +0000 (10:05 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 14 Jan 2011 21:57:15 +0000 (13:57 -0800)
commit65c41d55a06137115f0b4c67f9a3fd2708f0b625
tree498612e4fa710b3f2f700539d658784568fd2157
parent34a9da4eb4dd41dc874f1a175e993e42d4ff4b2a
mesa: Simplify _mesa_base_fbo_format by making it exceptions to teximages.

The comment of "this is just like teximages except for..." is a pretty
good clue that we're handling this wrong.  By just using the teximage
code, we catch a bunch of cases we'd missed, like GL_RED and GL_RG.
src/mesa/main/fbobject.c