mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
mesa: add KHR_no_error support for glViewportArrayv()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
e1d6de7a1e
commit
128822c59f
3 changed files with 13 additions and 1 deletions
|
|
@ -29,7 +29,7 @@
|
|||
<enum name="PROVOKING_VERTEX" value="0x8E4F"/>
|
||||
<enum name="UNDEFINED_VERTEX" value="0x8260"/>
|
||||
|
||||
<function name="ViewportArrayv">
|
||||
<function name="ViewportArrayv" no_error="true">
|
||||
<param name="first" type="GLuint"/>
|
||||
<param name="count" type="GLsizei"/>
|
||||
<param name="v" type="const GLfloat *" count="count" count_scale="4"/>
|
||||
|
|
|
|||
|
|
@ -168,6 +168,15 @@ viewport_array(struct gl_context *ctx, GLuint first, GLsizei count,
|
|||
ctx->Driver.Viewport(ctx);
|
||||
}
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_ViewportArrayv_no_error(GLuint first, GLsizei count, const GLfloat *v)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
const struct gl_viewport_inputs *const p = (struct gl_viewport_inputs *)v;
|
||||
viewport_array(ctx, first, count, p);
|
||||
}
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_ViewportArrayv(GLuint first, GLsizei count, const GLfloat *v)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -34,6 +34,9 @@ struct gl_context;
|
|||
extern void GLAPIENTRY
|
||||
_mesa_Viewport(GLint x, GLint y, GLsizei width, GLsizei height);
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_ViewportArrayv_no_error(GLuint first, GLsizei count, const GLfloat * v);
|
||||
|
||||
extern void GLAPIENTRY
|
||||
_mesa_ViewportArrayv(GLuint first, GLsizei count, const GLfloat * v);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue