summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-07-20 10:19:23 +0200
committerSamuel Pitoiset <[email protected]>2017-07-31 13:53:40 +0200
commit540b1a8f0b19fa06303500f82824b209ef8f8ef5 (patch)
treeadc069efc0789a419e412eb8725fb78762716a2b
parent1693ab6c3aabba33902f24789519a08b461e3f30 (diff)
mesa: add KHR_no_error support to glPointSize()
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
-rw-r--r--src/mapi/glapi/gen/gl_API.xml2
-rw-r--r--src/mesa/main/points.c8
-rw-r--r--src/mesa/main/points.h3
3 files changed, 12 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
index 3e2bdc1736e..ca514fdd0f9 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 012fac5b3cb..30bd7b89522 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 c3d0f691b03..c2b67a371fd 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 );