[Mesa-dev] [PATCH 01/23] fbobject: don't allow LUMINANCE/INTENSITY/ALPHA fbo on GLES
Jordan Justen
jordan.l.justen at intel.com
Fri Jan 4 18:41:24 PST 2013
Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
src/mesa/main/fbobject.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
index 4b7d4ab..f1cf700 100644
--- a/src/mesa/main/fbobject.c
+++ b/src/mesa/main/fbobject.c
@@ -492,7 +492,7 @@ _mesa_is_legal_color_format(const struct gl_context *ctx, GLenum baseFormat)
case GL_LUMINANCE_ALPHA:
case GL_INTENSITY:
case GL_ALPHA:
- return ctx->Extensions.ARB_framebuffer_object;
+ return _mesa_is_desktop_gl(ctx) && ctx->Extensions.ARB_framebuffer_object;
case GL_RED:
case GL_RG:
return ctx->Extensions.ARB_texture_rg;
--
1.7.10.4
More information about the mesa-dev
mailing list