main: don't error when enabling conservative rasterization on gles
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 8 Dec 2016 11:00:00 +0000 (11:00 +0000)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 13 Dec 2016 16:27:51 +0000 (16:27 +0000)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/mesa/main/enable.c

index 669fe167a51818e7d394be4e38db1c4bf119556a..f0c5bb7f35c9d70fb7607c5ad99bc795f832bde8 100644 (file)
@@ -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;