diff options
author | Erik Faye-Lund <[email protected]> | 2019-02-25 12:23:27 +0100 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2019-05-29 10:54:09 +0200 |
commit | 551b61528f6754aa91948ed13821cf2c90cf8970 (patch) | |
tree | 890bbf72ebcd829fd0af7fd7562a2fa9917819fc /src/mesa | |
parent | 426e896515ba63f0d23faa0d6788ace3e405441f (diff) |
mesa/main: clean up extension-check for GL_SAMPLE_MASK
Signed-off-by: Erik Faye-Lund <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/enable.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index 31918c23fcf..c4c3a0c27fb 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -1136,9 +1136,8 @@ _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state) /* ARB_texture_multisample */ case GL_SAMPLE_MASK: - if (!_mesa_is_desktop_gl(ctx) && !_mesa_is_gles31(ctx)) + if (!_mesa_has_ARB_texture_multisample(ctx) && !_mesa_is_gles31(ctx)) goto invalid_enum_error; - CHECK_EXTENSION(ARB_texture_multisample); if (ctx->Multisample.SampleMask == state) return; FLUSH_VERTICES(ctx, ctx->DriverFlags.NewSampleMask ? 0 : @@ -1758,9 +1757,8 @@ _mesa_IsEnabled( GLenum cap ) /* ARB_texture_multisample */ case GL_SAMPLE_MASK: - if (!_mesa_is_desktop_gl(ctx) && !_mesa_is_gles31(ctx)) + if (!_mesa_has_ARB_texture_multisample(ctx) && !_mesa_is_gles31(ctx)) goto invalid_enum_error; - CHECK_EXTENSION(ARB_texture_multisample); return ctx->Multisample.SampleMask; /* ARB_sample_shading */ |