summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_depth.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-04-21 13:18:06 -0600
committerBrian <[email protected]>2007-04-21 13:18:06 -0600
commitb5e9b0e56231065f6324bbd3c2c35ca53b46ddf8 (patch)
treeaa09e56a93018f6a6e9f4039c43a8dd6d1981775 /src/mesa/swrast/s_depth.c
parentb1502588c4755fa9d3d7b4eabed6332575033037 (diff)
Remove the !rb->Data check that was added a few months ago.
Was changed while debugging #7205. Broke the shadowtext demo. Revisit this if the problem w/ bug 7205 returns...
Diffstat (limited to 'src/mesa/swrast/s_depth.c')
-rw-r--r--src/mesa/swrast/s_depth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_depth.c b/src/mesa/swrast/s_depth.c
index dde2b1db83a..408174c990f 100644
--- a/src/mesa/swrast/s_depth.c
+++ b/src/mesa/swrast/s_depth.c
@@ -1350,7 +1350,7 @@ _swrast_clear_depth_buffer( GLcontext *ctx, struct gl_renderbuffer *rb )
GLuint clearValue;
GLint x, y, width, height;
- if (!rb || !ctx->Depth.Mask || !rb->Data) {
+ if (!rb || !ctx->Depth.Mask) {
/* no depth buffer, or writing to it is disabled */
return;
}