From: Jordan Justen Date: Thu, 27 Dec 2012 20:41:10 +0000 (-0800) Subject: fbobject: don't allow LUMINANCE/INTENSITY/ALPHA fbo on ES/Core X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cf300eaab68153d818f6c29f4b487162a589dcfa;p=mesa.git 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 --- 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;