From 540b1a8f0b19fa06303500f82824b209ef8f8ef5 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 20 Jul 2017 10:19:23 +0200 Subject: [PATCH] mesa: add KHR_no_error support to glPointSize() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- 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 3e2bdc1736e..ca514fdd0f9 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -2092,7 +2092,7 @@ - + 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 @@ -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 ) { 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 ); -- 2.30.2