summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-10-02 21:53:03 +0200
committerMarek Olšák <[email protected]>2010-10-24 23:14:01 +0200
commit6e618535901ac71a74ffb80d3da7c841a82eec02 (patch)
tree2cc85c1e5dce98ef970cfff4ab700c0fadbc7072 /src
parent70f60c9c89b4773089c621faf0e5765d9488e9fa (diff)
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/fbobject.c3
1 files changed, 3 insertions, 0 deletions
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: