mesa: allow FBO attachments of formats LUMINANCE, LUMINANCE_ALPHA, and INTENSITY
authorMarek Olšák <maraeo@gmail.com>
Sat, 2 Oct 2010 19:53:03 +0000 (21:53 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sun, 24 Oct 2010 21:14:01 +0000 (23:14 +0200)
As per the GL_ARB_framebuffer_object specification.

Signed-off-by: Marek Olšák <maraeo@gmail.com>
src/mesa/main/fbobject.c

index 5826d2d2192d987021e3265fc3806ff2e032dde4..bf46f51d7c09eb3ccb3bf1c80e0d013b22fec9f1 100644 (file)
@@ -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: