summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/fbobject.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2011-01-02 17:58:07 -0800
committerEric Anholt <eric@anholt.net>2011-01-03 13:28:24 -0800
commit059cca92a819e20e0d834605a3a7d277eaf88d9f (patch)
treee8ed2b8c91c91b80d5681ac834a8e5250bc2ff21 /src/mesa/main/fbobject.h
parentbeac6ee62aea196d6e670abd4b198190e33e6cb1 (diff)
downloadexternal_mesa3d-059cca92a819e20e0d834605a3a7d277eaf88d9f.zip
external_mesa3d-059cca92a819e20e0d834605a3a7d277eaf88d9f.tar.gz
external_mesa3d-059cca92a819e20e0d834605a3a7d277eaf88d9f.tar.bz2
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.
Diffstat (limited to 'src/mesa/main/fbobject.h')
-rw-r--r--src/mesa/main/fbobject.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/fbobject.h b/src/mesa/main/fbobject.h
index 2aace2e..8763f99 100644
--- a/src/mesa/main/fbobject.h
+++ b/src/mesa/main/fbobject.h
@@ -71,6 +71,9 @@ _mesa_framebuffer_renderbuffer(struct gl_context *ctx, struct gl_framebuffer *fb
extern void
_mesa_test_framebuffer_completeness(struct gl_context *ctx, struct gl_framebuffer *fb);
+extern GLboolean
+_mesa_is_legal_color_format(const struct gl_context *ctx, GLenum baseFormat);
+
extern GLenum
_mesa_base_fbo_format(struct gl_context *ctx, GLenum internalFormat);