From: Samuel Pitoiset Date: Thu, 27 Jul 2017 10:16:44 +0000 (+0200) Subject: mesa: add KHR_no_error support to glPolygonMode() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dd4e817b7f10ffffdadccae3b954b4d4c69248a9;p=mesa.git mesa: add KHR_no_error support to glPolygonMode() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml index 18a78dc315b..8e50a015069 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -2097,7 +2097,7 @@ - + diff --git a/src/mesa/main/polygon.c b/src/mesa/main/polygon.c index 98a9118fd20..44d943e930b 100644 --- a/src/mesa/main/polygon.c +++ b/src/mesa/main/polygon.c @@ -220,6 +220,14 @@ polygon_mode(struct gl_context *ctx, GLenum face, GLenum mode, bool no_error) } +void GLAPIENTRY +_mesa_PolygonMode_no_error(GLenum face, GLenum mode) +{ + GET_CURRENT_CONTEXT(ctx); + polygon_mode(ctx, face, mode, true); +} + + void GLAPIENTRY _mesa_PolygonMode(GLenum face, GLenum mode) { diff --git a/src/mesa/main/polygon.h b/src/mesa/main/polygon.h index 39b7a73be20..1b8186892a3 100644 --- a/src/mesa/main/polygon.h +++ b/src/mesa/main/polygon.h @@ -51,6 +51,9 @@ _mesa_FrontFace_no_error(GLenum mode); extern void GLAPIENTRY _mesa_FrontFace(GLenum mode); +void GLAPIENTRY +_mesa_PolygonMode_no_error(GLenum face, GLenum mode); + extern void GLAPIENTRY _mesa_PolygonMode( GLenum face, GLenum mode );