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 3e2bdc1736ec3f51526d852448bf8ddcb02da823..ca514fdd0f9e5dfb27c2ffa9c78217723e163159 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 012fac5b3cb4a0dab0ca52b652d5f22813886290..30bd7b89522328fd34b61ef2824231e9a5a5b3f3 100644 (file)
@@ -54,6 +54,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 )
 {
index c3d0f691b0389287618f13a498e570206d36845d..c2b67a371fd63f8f801b09b7ce9120e67a64f1e4 100644 (file)
@@ -37,6 +37,9 @@
 struct gl_context;
 
 
+void GLAPIENTRY
+_mesa_PointSize_no_error(GLfloat size);
+
 extern void GLAPIENTRY
 _mesa_PointSize( GLfloat size );