mesa: add KHR_no_error support to glMinSampleShading()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 19 Jul 2017 08:01:22 +0000 (10:01 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 31 Jul 2017 11:53:39 +0000 (13:53 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mapi/glapi/gen/GL4x.xml
src/mesa/main/multisample.c
src/mesa/main/multisample.h

index 53b77896cd577604248233e394d66f7d1296666e..7e8815becedfd439f088463b313993ae7522f7f3 100644 (file)
@@ -9,7 +9,7 @@
   <enum name="SAMPLE_SHADING"                          value="0x8C36"/>
   <enum name="MIN_SAMPLE_SHADING_VALUE"                value="0x8C37"/>
 
-  <function name="MinSampleShading" es2="3.2">
+  <function name="MinSampleShading" es2="3.2" no_error="true">
     <param name="value" type="GLfloat"/>
   </function>
 
index 037c8a6a15c9870519b2aa51fc5a112bc1db6ace..78cf7f3332eb1f82c69ce7f3a2e2812f93ec845d 100644 (file)
@@ -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)
 {
index 379afbc574fdb66d226711bfc3ac26519e7cb4ad..a7cd2918d7a95008df0e75f9bda9c53696a5af9a 100644 (file)
@@ -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);