diff options
author | Samuel Pitoiset <[email protected]> | 2017-07-28 15:47:21 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-07-31 12:14:07 +0200 |
commit | 58473f8b8782dbdcc59b65d6c8e936d595c8a628 (patch) | |
tree | 2d6008fec5b96b8222e5a517722c9300ac630259 /src/mesa/main/context.c | |
parent | 7ea4cda2ab4ddaeabaf4fd1c3337f9894424ce92 (diff) |
mesa: make _mesa_check_init_viewport() static
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r-- | src/mesa/main/context.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index fe527a0ae29..b4b7b6e7da1 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -1539,8 +1539,8 @@ check_compatible(const struct gl_context *ctx, * Check if the viewport/scissor size has not yet been initialized. * Initialize the size if the given width and height are non-zero. */ -void -_mesa_check_init_viewport(struct gl_context *ctx, GLuint width, GLuint height) +static void +check_init_viewport(struct gl_context *ctx, GLuint width, GLuint height) { if (!ctx->ViewportInitialized && width > 0 && height > 0) { unsigned i; @@ -1724,8 +1724,7 @@ _mesa_make_current( struct gl_context *newCtx, */ newCtx->NewState |= _NEW_BUFFERS; - _mesa_check_init_viewport(newCtx, - drawBuffer->Width, drawBuffer->Height); + check_init_viewport(newCtx, drawBuffer->Width, drawBuffer->Height); } if (newCtx->FirstTimeCurrent) { |