diff options
author | Eric Anholt <[email protected]> | 2011-01-02 18:01:39 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2011-01-03 13:22:38 -0800 |
commit | beac6ee62aea196d6e670abd4b198190e33e6cb1 (patch) | |
tree | 10c95b427fbcfed4b562d2ee4b0f9df7473c5382 | |
parent | 2d29349c0083134e3b9b9d2023368268b7dcc951 (diff) |
mesa: Allow color renderbuffers besides just RGB and RGBA.
We did so already for textures to do ARB_fbo's
GL_ALPHA/GL_LUMINANCE/etc. support and for ARB_texture_rg's GL_RED and
GL_RG, but this path was missed.
-rw-r--r-- | src/mesa/main/fbobject.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index 975063d0d78..b4101ddcd53 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -542,8 +542,7 @@ test_attachment_completeness(const struct gl_context *ctx, GLenum format, return; } if (format == GL_COLOR) { - if (baseFormat != GL_RGB && - baseFormat != GL_RGBA) { + if (!is_legal_color_format(ctx, baseFormat)) { att_incomplete("bad renderbuffer color format"); att->Complete = GL_FALSE; return; |