diff options
author | Samuel Pitoiset <[email protected]> | 2017-06-22 15:19:34 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-06-23 09:26:43 +0200 |
commit | 0a667f03bbf7c180dbee5a2dd14ed302bad4943a (patch) | |
tree | 878863d46f5cd4551305d96df6470871acf5764b /src/mesa/main | |
parent | efd42b5791d0b28b8150ec299b7013e342b87644 (diff) |
mesa: add KHR_no_error support for glViewportIndexed*()
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/viewport.c | 15 | ||||
-rw-r--r-- | src/mesa/main/viewport.h | 7 |
2 files changed, 22 insertions, 0 deletions
diff --git a/src/mesa/main/viewport.c b/src/mesa/main/viewport.c index 49ecdbb7dc1..b94cb56a4b7 100644 --- a/src/mesa/main/viewport.c +++ b/src/mesa/main/viewport.c @@ -220,6 +220,14 @@ viewport_indexed_err(struct gl_context *ctx, GLuint index, GLfloat x, GLfloat y, } void GLAPIENTRY +_mesa_ViewportIndexedf_no_error(GLuint index, GLfloat x, GLfloat y, + GLfloat w, GLfloat h) +{ + GET_CURRENT_CONTEXT(ctx); + _mesa_set_viewport(ctx, index, x, y, w, h); +} + +void GLAPIENTRY _mesa_ViewportIndexedf(GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h) { @@ -228,6 +236,13 @@ _mesa_ViewportIndexedf(GLuint index, GLfloat x, GLfloat y, } void GLAPIENTRY +_mesa_ViewportIndexedfv_no_error(GLuint index, const GLfloat *v) +{ + GET_CURRENT_CONTEXT(ctx); + _mesa_set_viewport(ctx, index, v[0], v[1], v[2], v[3]); +} + +void GLAPIENTRY _mesa_ViewportIndexedfv(GLuint index, const GLfloat *v) { GET_CURRENT_CONTEXT(ctx); diff --git a/src/mesa/main/viewport.h b/src/mesa/main/viewport.h index 88757f0291e..5fc67d2d494 100644 --- a/src/mesa/main/viewport.h +++ b/src/mesa/main/viewport.h @@ -37,9 +37,16 @@ _mesa_Viewport(GLint x, GLint y, GLsizei width, GLsizei height); extern void GLAPIENTRY _mesa_ViewportArrayv(GLuint first, GLsizei count, const GLfloat * v); +void GLAPIENTRY +_mesa_ViewportIndexedf_no_error(GLuint index, GLfloat x, GLfloat y, GLfloat w, + GLfloat h); + extern void GLAPIENTRY _mesa_ViewportIndexedf(GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h); +void GLAPIENTRY +_mesa_ViewportIndexedfv_no_error(GLuint index, const GLfloat * v); + extern void GLAPIENTRY _mesa_ViewportIndexedfv(GLuint index, const GLfloat * v); |