From: Marta Lofstedt Date: Mon, 11 May 2015 13:03:50 +0000 (+0200) Subject: mesa/es3.1: Allow GL_SAMPLE_MASK X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f8e4a95dbd806bc735bf93dda245be2bb2ea454;p=mesa.git mesa/es3.1: Allow GL_SAMPLE_MASK GLES 3.1 should be allowed to enable GL_SAMPLE_MASK. Signed-off-by: Marta Lofstedt Reviewed-by: Tapani Pälli --- diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index d0583edc019..adba03576c1 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -1001,7 +1001,7 @@ _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state) /* ARB_texture_multisample */ case GL_SAMPLE_MASK: - if (!_mesa_is_desktop_gl(ctx)) + if (!_mesa_is_desktop_gl(ctx) && !_mesa_is_gles31(ctx)) goto invalid_enum_error; CHECK_EXTENSION(ARB_texture_multisample, cap); if (ctx->Multisample.SampleMask == state)