diff options
author | Samuel Pitoiset <[email protected]> | 2017-06-23 17:35:51 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-06-28 10:25:12 +0200 |
commit | eaa477104c28389ee27f11d9ab97e44ff543c802 (patch) | |
tree | a3a49a4afbc801357618babc03aa88ed53632f19 /src | |
parent | d77ad9da63185c139baec7e07c2449a040d43448 (diff) |
mesa: add KHR_no_error support for glFrontFace()
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mapi/glapi/gen/gl_API.xml | 2 | ||||
-rw-r--r-- | src/mesa/main/polygon.c | 8 | ||||
-rw-r--r-- | src/mesa/main/polygon.h | 3 |
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 ba71d36451e..bcd1205537e 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -1990,7 +1990,7 @@ <glx rop="83"/> </function> - <function name="FrontFace" es1="1.0" es2="2.0"> + <function name="FrontFace" es1="1.0" es2="2.0" no_error="true"> <param name="mode" type="GLenum"/> <glx rop="84"/> </function> diff --git a/src/mesa/main/polygon.c b/src/mesa/main/polygon.c index 7ad536fe5e0..f447993072a 100644 --- a/src/mesa/main/polygon.c +++ b/src/mesa/main/polygon.c @@ -122,6 +122,14 @@ front_face(struct gl_context *ctx, GLenum mode, bool no_error) void GLAPIENTRY +_mesa_FrontFace_no_error(GLenum mode) +{ + GET_CURRENT_CONTEXT(ctx); + front_face(ctx, mode, true); +} + + +void GLAPIENTRY _mesa_FrontFace(GLenum mode) { GET_CURRENT_CONTEXT(ctx); diff --git a/src/mesa/main/polygon.h b/src/mesa/main/polygon.h index b9570cd1883..39b7a73be20 100644 --- a/src/mesa/main/polygon.h +++ b/src/mesa/main/polygon.h @@ -45,6 +45,9 @@ _mesa_CullFace_no_error(GLenum mode); extern void GLAPIENTRY _mesa_CullFace(GLenum mode); +void GLAPIENTRY +_mesa_FrontFace_no_error(GLenum mode); + extern void GLAPIENTRY _mesa_FrontFace(GLenum mode); |