Module: Mesa
Branch: master
Commit: 6e618535901ac71a74ffb80d3da7c841a82eec02
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6e618535901ac71a74ffb80d3da7c841a82eec02

Author: Marek Olšák <[email protected]>
Date:   Sat Oct  2 21:53:03 2010 +0200

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]>

---

 src/mesa/main/fbobject.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
index 5826d2d..bf46f51 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:

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to