mesa/main: make the CONSERVATIVE_RASTERIZATION_INTEL checks consistent
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 25 Feb 2019 12:28:08 +0000 (13:28 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 23 May 2019 09:43:18 +0000 (11:43 +0200)
INTEL_conservative_rasterization isn't exposed on compatibility
contexts, nor for GLES 3.0 and below. We already do this correctly for
gl{Enable,Disable}, but we should do the same for glIsEnabled as well.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/enable.c

index f92498b3dc6b4aaa0da553c2df52463b7df9f8ad..dc9c77cfb8623ee63243489dde1811e7a9332ab5 100644 (file)
@@ -1770,7 +1770,8 @@ _mesa_IsEnabled( GLenum cap )
          return ctx->Color.BlendCoherent;
 
       case GL_CONSERVATIVE_RASTERIZATION_INTEL:
-         CHECK_EXTENSION(INTEL_conservative_rasterization);
+         if (!_mesa_has_INTEL_conservative_rasterization(ctx))
+            goto invalid_enum_error;
          return ctx->IntelConservativeRasterization;
 
       case GL_CONSERVATIVE_RASTERIZATION_NV: