Re: [Mesa-dev] [PATCH 1/2] mesa: make _mesa_check_init_viewport() static
On 28.07.2017 15:47, Samuel Pitoiset wrote: Signed-off-by: Samuel PitoisetReviewed-by: Nicolai Hähnle --- src/mesa/main/context.c | 7 +++ src/mesa/main/context.h | 4 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index fe527a0ae2..b4b7b6e7da 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) { diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h index 4f75f57713..309d25cf3b 100644 --- a/src/mesa/main/context.h +++ b/src/mesa/main/context.h @@ -123,10 +123,6 @@ _mesa_destroy_context( struct gl_context *ctx ); extern void _mesa_copy_context(const struct gl_context *src, struct gl_context *dst, GLuint mask); - -extern void -_mesa_check_init_viewport(struct gl_context *ctx, GLuint width, GLuint height); - extern GLboolean _mesa_make_current( struct gl_context *ctx, struct gl_framebuffer *drawBuffer, struct gl_framebuffer *readBuffer ); -- Lerne, wie die Welt wirklich ist, Aber vergiss niemals, wie sie sein sollte. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
[Mesa-dev] [PATCH 1/2] mesa: make _mesa_check_init_viewport() static
Signed-off-by: Samuel Pitoiset--- src/mesa/main/context.c | 7 +++ src/mesa/main/context.h | 4 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index fe527a0ae2..b4b7b6e7da 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) { diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h index 4f75f57713..309d25cf3b 100644 --- a/src/mesa/main/context.h +++ b/src/mesa/main/context.h @@ -123,10 +123,6 @@ _mesa_destroy_context( struct gl_context *ctx ); extern void _mesa_copy_context(const struct gl_context *src, struct gl_context *dst, GLuint mask); - -extern void -_mesa_check_init_viewport(struct gl_context *ctx, GLuint width, GLuint height); - extern GLboolean _mesa_make_current( struct gl_context *ctx, struct gl_framebuffer *drawBuffer, struct gl_framebuffer *readBuffer ); -- 2.13.3 ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev