From: Marek Olšák Date: Sat, 2 Oct 2010 19:53:03 +0000 (+0200) Subject: mesa: allow FBO attachments of formats LUMINANCE, LUMINANCE_ALPHA, and INTENSITY X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6e618535901ac71a74ffb80d3da7c841a82eec02;p=mesa.git mesa: allow FBO attachments of formats LUMINANCE, LUMINANCE_ALPHA, and INTENSITY As per the GL_ARB_framebuffer_object specification. Signed-off-by: Marek Olšák --- diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index 5826d2d2192..bf46f51d7c0 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -409,6 +409,9 @@ is_legal_color_format(const struct gl_context *ctx, GLenum baseFormat) case GL_RGB: case GL_RGBA: return GL_TRUE; + case GL_LUMINANCE: + case GL_LUMINANCE_ALPHA: + case GL_INTENSITY: case GL_ALPHA: return ctx->Extensions.ARB_framebuffer_object; case GL_RED: