From: Samuel Pitoiset Date: Tue, 6 Jun 2017 19:58:25 +0000 (+0200) Subject: mesa: make _mesa_scissor_bounding_box() static X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ee38dfe9a5525375012d1c6681e7c39c15ac3049;p=mesa.git mesa: make _mesa_scissor_bounding_box() static Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c index 5069d373948..993cd37137b 100644 --- a/src/mesa/main/framebuffer.c +++ b/src/mesa/main/framebuffer.c @@ -407,10 +407,10 @@ _mesa_intersect_scissor_bounding_box(const struct gl_context *ctx, * * \sa _mesa_clip_to_region */ -void -_mesa_scissor_bounding_box(const struct gl_context *ctx, - const struct gl_framebuffer *buffer, - unsigned idx, int *bbox) +static void +scissor_bounding_box(const struct gl_context *ctx, + const struct gl_framebuffer *buffer, + unsigned idx, int *bbox) { bbox[0] = 0; bbox[2] = 0; @@ -444,7 +444,7 @@ _mesa_update_draw_buffer_bounds(struct gl_context *ctx, } /* Default to the first scissor as that's always valid */ - _mesa_scissor_bounding_box(ctx, buffer, 0, bbox); + scissor_bounding_box(ctx, buffer, 0, bbox); buffer->_Xmin = bbox[0]; buffer->_Ymin = bbox[2]; buffer->_Xmax = bbox[1]; diff --git a/src/mesa/main/framebuffer.h b/src/mesa/main/framebuffer.h index ee0690b068b..bc6e7bc31ac 100644 --- a/src/mesa/main/framebuffer.h +++ b/src/mesa/main/framebuffer.h @@ -71,10 +71,6 @@ _mesa_resize_framebuffer(struct gl_context *ctx, struct gl_framebuffer *fb, extern void _mesa_resizebuffers( struct gl_context *ctx ); -extern void -_mesa_scissor_bounding_box(const struct gl_context *ctx, - const struct gl_framebuffer *buffer, - unsigned idx, int *bbox); extern void _mesa_intersect_scissor_bounding_box(const struct gl_context *ctx, unsigned idx, int *bbox);