From cf300eaab68153d818f6c29f4b487162a589dcfa Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Thu, 27 Dec 2012 12:41:10 -0800 Subject: [PATCH] fbobject: don't allow LUMINANCE/INTENSITY/ALPHA fbo on ES/Core v2: * Only allow on GL Legacy contexts Signed-off-by: Jordan Justen Reviewed-by: Matt Turner Reviewed-by: Ian Romanick --- src/mesa/main/fbobject.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index c4382681633..bb8ee2d8d78 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -492,7 +492,8 @@ _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 ctx->API == API_OPENGL_COMPAT && + ctx->Extensions.ARB_framebuffer_object; case GL_RED: case GL_RG: return ctx->Extensions.ARB_texture_rg; -- 2.30.2