From 300d96a4335b842256c2586a8472f0fbadb594f4 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Thu, 8 Dec 2016 11:00:00 +0000 Subject: [PATCH] main: don't error when enabling conservative rasterization on gles Signed-off-by: Lionel Landwerlin Reviewed-by: Ilia Mirkin --- src/mesa/main/enable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index 669fe167a51..f0c5bb7f35c 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -440,7 +440,7 @@ _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state) ctx->Color.IndexLogicOpEnabled = state; break; case GL_CONSERVATIVE_RASTERIZATION_INTEL: - if (!_mesa_is_desktop_gl(ctx) && ctx->API != API_OPENGLES) + if (!_mesa_has_INTEL_conservative_rasterization(ctx)) goto invalid_enum_error; if (ctx->IntelConservativeRasterization == state) return; -- 2.30.2