summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_depth.c
diff options
context:
space:
mode:
authorPaul Berry <stereotype441@gmail.com>2011-12-29 10:15:43 -0800
committerPaul Berry <stereotype441@gmail.com>2012-01-02 11:10:57 -0800
commit7cbcce383c4aef1bd17850a4487805e30d84613a (patch)
treeba97fbfcf51727493b3716cc58d14f6df8407bf3 /src/mesa/swrast/s_depth.c
parent01a63f4bf5ab5e2e67982c6c60670dd2b4fe9fcb (diff)
downloadexternal_mesa3d-7cbcce383c4aef1bd17850a4487805e30d84613a.zip
external_mesa3d-7cbcce383c4aef1bd17850a4487805e30d84613a.tar.gz
external_mesa3d-7cbcce383c4aef1bd17850a4487805e30d84613a.tar.bz2
swrast: Remove dead code in _swrast_clear_depth_buffer()
This code was generating the gcc warning: variable ‘clearValue’ set but not used [-Wunused-but-set-variable] Reviewed-by: Brian Paul <brianp@vmare.com>
Diffstat (limited to 'src/mesa/swrast/s_depth.c')
-rw-r--r--src/mesa/swrast/s_depth.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/mesa/swrast/s_depth.c b/src/mesa/swrast/s_depth.c
index f87adaa..53f21cb 100644
--- a/src/mesa/swrast/s_depth.c
+++ b/src/mesa/swrast/s_depth.c
@@ -489,7 +489,6 @@ _swrast_clear_depth_buffer(struct gl_context *ctx)
{
struct gl_renderbuffer *rb =
ctx->DrawBuffer->Attachment[BUFFER_DEPTH].Renderbuffer;
- GLuint clearValue;
GLint x, y, width, height;
GLubyte *map;
GLint rowStride, i, j;
@@ -500,14 +499,6 @@ _swrast_clear_depth_buffer(struct gl_context *ctx)
return;
}
- /* compute integer clearing value */
- if (ctx->Depth.Clear == 1.0) {
- clearValue = ctx->DrawBuffer->_DepthMax;
- }
- else {
- clearValue = (GLuint) (ctx->Depth.Clear * ctx->DrawBuffer->_DepthMaxF);
- }
-
/* compute region to clear */
x = ctx->DrawBuffer->_Xmin;
y = ctx->DrawBuffer->_Ymin;