diff options
author | Brian Paul <[email protected]> | 2011-12-24 08:54:26 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-12-24 08:54:26 -0700 |
commit | 8b913bda3ad20ec2c8353859d75a3d938801d86f (patch) | |
tree | 722d61b34e80705d6fdafb9ae0ab21aed5299c8d /src/mesa/swrast | |
parent | 70df474941fa5bd45386370240427944784b7729 (diff) |
swrast: remove dead code in s_stencil.c
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/swrast')
-rw-r--r-- | src/mesa/swrast/s_stencil.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/mesa/swrast/s_stencil.c b/src/mesa/swrast/s_stencil.c index 5ed9228a3a5..dff8f46ca9c 100644 --- a/src/mesa/swrast/s_stencil.c +++ b/src/mesa/swrast/s_stencil.c @@ -1045,39 +1045,6 @@ _swrast_stencil_and_ztest_span(struct gl_context *ctx, SWspan *span) } -#if 0 -GLuint -clip_span(GLuint bufferWidth, GLuint bufferHeight, - GLint x, GLint y, GLuint *count) -{ - GLuint n = *count; - GLuint skipPixels = 0; - - if (y < 0 || y >= bufferHeight || x + n <= 0 || x >= bufferWidth) { - /* totally out of bounds */ - n = 0; - } - else { - /* left clip */ - if (x < 0) { - skipPixels = -x; - x = 0; - n -= skipPixels; - } - /* right clip */ - if (x + n > bufferWidth) { - GLint dx = x + n - bufferWidth; - n -= dx; - } - } - - *count = n; - - return skipPixels; -} -#endif - - /** * Return a span of stencil values from the stencil buffer. * Used for glRead/CopyPixels |