From 059cca92a819e20e0d834605a3a7d277eaf88d9f Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sun, 2 Jan 2011 17:58:07 -0800 Subject: 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.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mesa/main/fbobject.h') 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); -- cgit v1.1