mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 13:10:10 +01:00
mesa: Add an index parameter to _mesa_set_scissor
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
5232a7ded0
commit
f6d7cd4a11
4 changed files with 6 additions and 6 deletions
|
|
@ -1271,7 +1271,7 @@ _mesa_PopAttrib(void)
|
|||
{
|
||||
const struct gl_scissor_attrib *scissor;
|
||||
scissor = (const struct gl_scissor_attrib *) attr->data;
|
||||
_mesa_set_scissor(ctx,
|
||||
_mesa_set_scissor(ctx, 0,
|
||||
scissor->ScissorArray[0].X,
|
||||
scissor->ScissorArray[0].Y,
|
||||
scissor->ScissorArray[0].Width,
|
||||
|
|
|
|||
|
|
@ -1438,7 +1438,7 @@ _mesa_check_init_viewport(struct gl_context *ctx, GLuint width, GLuint height)
|
|||
*/
|
||||
ctx->ViewportInitialized = GL_TRUE;
|
||||
_mesa_set_viewport(ctx, 0, 0, 0, width, height);
|
||||
_mesa_set_scissor(ctx, 0, 0, width, height);
|
||||
_mesa_set_scissor(ctx, 0, 0, 0, width, height);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ _mesa_Scissor( GLint x, GLint y, GLsizei width, GLsizei height )
|
|||
return;
|
||||
}
|
||||
|
||||
_mesa_set_scissor(ctx, x, y, width, height);
|
||||
_mesa_set_scissor(ctx, 0, x, y, width, height);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -88,10 +88,10 @@ _mesa_Scissor( GLint x, GLint y, GLsizei width, GLsizei height )
|
|||
* the dd_function_table::Scissor callback.
|
||||
*/
|
||||
void
|
||||
_mesa_set_scissor(struct gl_context *ctx,
|
||||
_mesa_set_scissor(struct gl_context *ctx, unsigned idx,
|
||||
GLint x, GLint y, GLsizei width, GLsizei height)
|
||||
{
|
||||
set_scissor_no_notify(ctx, 0, x, y, width, height);
|
||||
set_scissor_no_notify(ctx, idx, x, y, width, height);
|
||||
|
||||
if (ctx->Driver.Scissor)
|
||||
ctx->Driver.Scissor(ctx);
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ _mesa_Scissor( GLint x, GLint y, GLsizei width, GLsizei height );
|
|||
|
||||
|
||||
extern void
|
||||
_mesa_set_scissor(struct gl_context *ctx,
|
||||
_mesa_set_scissor(struct gl_context *ctx, unsigned idx,
|
||||
GLint x, GLint y, GLsizei width, GLsizei height);
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue