[Mesa-dev] [PATCH 077/101] mesa: add KHR_no_error support to glPointSize()
Samuel Pitoiset
samuel.pitoiset at gmail.com
Fri Jul 21 17:40:26 UTC 2017
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
src/mapi/glapi/gen/gl_API.xml | 2 +-
src/mesa/main/points.c | 8 ++++++++
src/mesa/main/points.h | 3 +++
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
index 3e2bdc1736..ca514fdd0f 100644
--- a/src/mapi/glapi/gen/gl_API.xml
+++ b/src/mapi/glapi/gen/gl_API.xml
@@ -2092,7 +2092,7 @@
<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>
diff --git a/src/mesa/main/points.c b/src/mesa/main/points.c
index 012fac5b3c..30bd7b8952 100644
--- a/src/mesa/main/points.c
+++ b/src/mesa/main/points.c
@@ -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);
diff --git a/src/mesa/main/points.h b/src/mesa/main/points.h
index c3d0f691b0..c2b67a371f 100644
--- a/src/mesa/main/points.h
+++ b/src/mesa/main/points.h
@@ -37,6 +37,9 @@
struct gl_context;
+void GLAPIENTRY
+_mesa_PointSize_no_error(GLfloat size);
+
extern void GLAPIENTRY
_mesa_PointSize( GLfloat size );
--
2.13.3
More information about the mesa-dev
mailing list