diff options
author | Eric Anholt <[email protected]> | 2011-01-02 17:58:07 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2011-01-03 13:28:24 -0800 |
commit | 059cca92a819e20e0d834605a3a7d277eaf88d9f (patch) | |
tree | e8ed2b8c91c91b80d5681ac834a8e5250bc2ff21 /src/mesa/main/fbobject.h | |
parent | beac6ee62aea196d6e670abd4b198190e33e6cb1 (diff) |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/fbobject.h b/src/mesa/main/fbobject.h index 2aace2ebd4b..8763f99c4a7 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); |