diff options
author | Samuel Pitoiset <[email protected]> | 2017-07-27 12:16:44 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-08-02 12:54:32 +0200 |
commit | dd4e817b7f10ffffdadccae3b954b4d4c69248a9 (patch) | |
tree | cf808aaac7736eb36c5d56c783cacbc0936a0d85 /src/mesa/main | |
parent | 1b603f0985ece4764962480bcaed043b7ac54998 (diff) |
mesa: add KHR_no_error support to glPolygonMode()
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/polygon.c | 8 | ||||
-rw-r--r-- | src/mesa/main/polygon.h | 3 |
2 files changed, 11 insertions, 0 deletions
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 @@ -221,6 +221,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) { GET_CURRENT_CONTEXT(ctx); 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 ); |