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 glViewport()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
ad0afa87b8
commit
c244c25ce3
3 changed files with 11 additions and 1 deletions
|
|
@ -2966,7 +2966,7 @@
|
|||
<glx rop="190"/>
|
||||
</function>
|
||||
|
||||
<function name="Viewport" es1="1.0" es2="2.0">
|
||||
<function name="Viewport" es1="1.0" es2="2.0" no_error="true">
|
||||
<param name="x" type="GLint"/>
|
||||
<param name="y" type="GLint"/>
|
||||
<param name="width" type="GLsizei"/>
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue