summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/scissor.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-06-06 21:58:27 +0200
committerSamuel Pitoiset <[email protected]>2017-06-07 09:09:13 +0200
commit80ae5c128d994b8c8103a8ba3b096837b248646d (patch)
treedfb3d9e7c323de51a6a7f06ad55d18d30f6fc2ef /src/mesa/main/scissor.c
parente8de0e124f80b117cf52df81a91fac63bda6fcca (diff)
mesa: rename ScissorIndexed() to scissor_indexed_err()
And move GET_CURRENT_CONTEXT() into the APIENTRY calls for consistency. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main/scissor.c')
-rw-r--r--src/mesa/main/scissor.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/mesa/main/scissor.c b/src/mesa/main/scissor.c
index 0dd956c9e3d..5cf02168bdd 100644
--- a/src/mesa/main/scissor.c
+++ b/src/mesa/main/scissor.c
@@ -169,11 +169,10 @@ _mesa_ScissorArrayv(GLuint first, GLsizei count, const GLint *v)
* Verifies the parameters call set_scissor_no_notify to do the work.
*/
static void
-ScissorIndexed(GLuint index, GLint left, GLint bottom,
- GLsizei width, GLsizei height, const char *function)
+scissor_indexed_err(struct gl_context *ctx, GLuint index, GLint left,
+ GLint bottom, GLsizei width, GLsizei height,
+ const char *function)
{
- GET_CURRENT_CONTEXT(ctx);
-
if (MESA_VERBOSE & VERBOSE_API)
_mesa_debug(ctx, "%s(%d, %d, %d, %d, %d)\n",
function, index, left, bottom, width, height);
@@ -199,13 +198,17 @@ void GLAPIENTRY
_mesa_ScissorIndexed(GLuint index, GLint left, GLint bottom,
GLsizei width, GLsizei height)
{
- ScissorIndexed(index, left, bottom, width, height, "glScissorIndexed");
+ GET_CURRENT_CONTEXT(ctx);
+ scissor_indexed_err(ctx, index, left, bottom, width, height,
+ "glScissorIndexed");
}
void GLAPIENTRY
_mesa_ScissorIndexedv(GLuint index, const GLint *v)
{
- ScissorIndexed(index, v[0], v[1], v[2], v[3], "glScissorIndexedv");
+ GET_CURRENT_CONTEXT(ctx);
+ scissor_indexed_err(ctx, index, v[0], v[1], v[2], v[3],
+ "glScissorIndexedv");
}
void GLAPIENTRY