From e98cb5bbca393be9dc15bed49bdb0a2408d462cf Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 19 Jul 2017 10:01:22 +0200 Subject: [PATCH] mesa: add KHR_no_error support to glMinSampleShading() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- src/mapi/glapi/gen/GL4x.xml | 2 +- src/mesa/main/multisample.c | 7 +++++++ src/mesa/main/multisample.h | 3 +++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/mapi/glapi/gen/GL4x.xml b/src/mapi/glapi/gen/GL4x.xml index 53b77896cd5..7e8815beced 100644 --- a/src/mapi/glapi/gen/GL4x.xml +++ b/src/mapi/glapi/gen/GL4x.xml @@ -9,7 +9,7 @@ - + diff --git a/src/mesa/main/multisample.c b/src/mesa/main/multisample.c index 037c8a6a15c..78cf7f3332e 100644 --- a/src/mesa/main/multisample.c +++ b/src/mesa/main/multisample.c @@ -158,6 +158,13 @@ min_sample_shading(struct gl_context *ctx, GLclampf value) /** * Called via glMinSampleShadingARB */ +void GLAPIENTRY +_mesa_MinSampleShading_no_error(GLclampf value) +{ + GET_CURRENT_CONTEXT(ctx); + min_sample_shading(ctx, value); +} + void GLAPIENTRY _mesa_MinSampleShading(GLclampf value) { diff --git a/src/mesa/main/multisample.h b/src/mesa/main/multisample.h index 379afbc574f..a7cd2918d7a 100644 --- a/src/mesa/main/multisample.h +++ b/src/mesa/main/multisample.h @@ -47,6 +47,9 @@ _mesa_SampleMaski_no_error(GLuint index, GLbitfield mask); extern void GLAPIENTRY _mesa_SampleMaski(GLuint index, GLbitfield mask); +void GLAPIENTRY +_mesa_MinSampleShading_no_error(GLclampf value); + extern void GLAPIENTRY _mesa_MinSampleShading(GLclampf value); -- 2.30.2