diff options
author | Jordan Justen <[email protected]> | 2012-12-27 12:41:10 -0800 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2013-01-14 20:47:02 -0800 |
commit | cf300eaab68153d818f6c29f4b487162a589dcfa (patch) | |
tree | a273e22e2463ccf3837462a3ff2aa3a094f4c0b5 /src/mesa | |
parent | 275620c4b298cae9e3152fd39d7e291b87802f03 (diff) |
fbobject: don't allow LUMINANCE/INTENSITY/ALPHA fbo on ES/Core
v2:
* Only allow on GL Legacy contexts
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/fbobject.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |