OSDN Git Service

mesa: Use the common logic for "is this baseformat a color format?"
authorEric Anholt <eric@anholt.net>
Mon, 3 Jan 2011 01:58:07 +0000 (17:58 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 3 Jan 2011 21:28:24 +0000 (13:28 -0800)
commit059cca92a819e20e0d834605a3a7d277eaf88d9f
treee8ed2b8c91c91b80d5681ac834a8e5250bc2ff21
parentbeac6ee62aea196d6e670abd4b198190e33e6cb1
mesa: Use the common logic for "is this baseformat a color format?"

When figuring out whether a renderbuffer should be used to set the
visual bits of an FBO, we were missing important baseformats like
GL_RED, GL_RG, and GL_LUMINANCE.
src/mesa/main/fbobject.c
src/mesa/main/fbobject.h
src/mesa/main/framebuffer.c
src/mesa/main/framebuffer.h