From: Samuel Pitoiset Date: Thu, 22 Jun 2017 13:51:46 +0000 (+0200) Subject: mesa: add KHR_no_error support for glViewport() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c244c25ce36f6920c25c8fd8f071038712004f14;p=mesa.git mesa: add KHR_no_error support for glViewport() 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 8784f0537f5..2cc66ac8b0f 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -2966,7 +2966,7 @@ - + diff --git a/src/mesa/main/viewport.c b/src/mesa/main/viewport.c index b18168a4d43..8c95bf472d8 100644 --- a/src/mesa/main/viewport.c +++ b/src/mesa/main/viewport.c @@ -118,6 +118,13 @@ viewport(struct gl_context *ctx, GLint x, GLint y, GLsizei width, * Flushes the vertices and calls _mesa_set_viewport() with the given * parameters. */ +void GLAPIENTRY +_mesa_Viewport_no_error(GLint x, GLint y, GLsizei width, GLsizei height) +{ + GET_CURRENT_CONTEXT(ctx); + viewport(ctx, x, y, width, height); +} + void GLAPIENTRY _mesa_Viewport(GLint x, GLint y, GLsizei width, GLsizei height) { diff --git a/src/mesa/main/viewport.h b/src/mesa/main/viewport.h index 570a23a23b2..b07410bf58a 100644 --- a/src/mesa/main/viewport.h +++ b/src/mesa/main/viewport.h @@ -31,6 +31,9 @@ struct gl_context; +void GLAPIENTRY +_mesa_Viewport_no_error(GLint x, GLint y, GLsizei width, GLsizei height); + extern void GLAPIENTRY _mesa_Viewport(GLint x, GLint y, GLsizei width, GLsizei height);