From: Samuel Pitoiset Date: Fri, 23 Jun 2017 15:11:05 +0000 (+0200) Subject: mesa: add KHR_no_error support for glCullFace() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d700ade81a8a88bb6eb07f271ba9b554e73d27b8;p=mesa.git mesa: add KHR_no_error support for glCullFace() 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 415ed6a98bb..ba71d36451e 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -1961,7 +1961,7 @@ - + diff --git a/src/mesa/main/polygon.c b/src/mesa/main/polygon.c index 13dca6d39cf..49a60e8e533 100644 --- a/src/mesa/main/polygon.c +++ b/src/mesa/main/polygon.c @@ -65,6 +65,14 @@ cull_face(struct gl_context *ctx, GLenum mode) } +void GLAPIENTRY +_mesa_CullFace_no_error(GLenum mode) +{ + GET_CURRENT_CONTEXT(ctx); + cull_face(ctx, mode); +} + + void GLAPIENTRY _mesa_CullFace(GLenum mode) { diff --git a/src/mesa/main/polygon.h b/src/mesa/main/polygon.h index ceca848d6d4..78c7f711642 100644 --- a/src/mesa/main/polygon.h +++ b/src/mesa/main/polygon.h @@ -39,6 +39,9 @@ struct gl_context; extern void GLAPIENTRY _mesa_GetnPolygonStippleARB( GLsizei bufSize, GLubyte *dest ); +void GLAPIENTRY +_mesa_CullFace_no_error(GLenum mode); + extern void GLAPIENTRY _mesa_CullFace(GLenum mode);