mesa: add KHR_no_error support to glPointSize()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 20 Jul 2017 08:19:23 +0000 (10:19 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 31 Jul 2017 11:53:40 +0000 (13:53 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mapi/glapi/gen/gl_API.xml
src/mesa/main/points.c
src/mesa/main/points.h

index 3e2bdc1..ca514fd 100644 (file)
         <glx rop="99"/>
     </function>
 
-    <function name="PointSize" es1="1.0">
+    <function name="PointSize" es1="1.0" no_error="true">
         <param name="size" type="GLfloat"/>
         <glx rop="100"/>
     </function>
index 012fac5..30bd7b8 100644 (file)
@@ -55,6 +55,14 @@ point_size(struct gl_context *ctx, GLfloat size)
 
 
 void GLAPIENTRY
+_mesa_PointSize_no_error(GLfloat size)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   point_size(ctx, size);
+}
+
+
+void GLAPIENTRY
 _mesa_PointSize( GLfloat size )
 {
    GET_CURRENT_CONTEXT(ctx);
index c3d0f69..c2b67a3 100644 (file)
@@ -37,6 +37,9 @@
 struct gl_context;
 
 
+void GLAPIENTRY
+_mesa_PointSize_no_error(GLfloat size);
+
 extern void GLAPIENTRY
 _mesa_PointSize( GLfloat size );