diff options
author | Brian Paul <[email protected]> | 2005-11-16 04:09:26 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-11-16 04:09:26 +0000 |
commit | 1a5f1bdb428ea3ded1e77796590014f89fe78f77 (patch) | |
tree | f0acd33352c709acb37c8b279a3251d3c46ebace /src/mesa/swrast/s_triangle.c | |
parent | 909e8a7abbce61de467e059d9be57a1f32a3d344 (diff) |
Use new gl_framebuffer _Depth/_StencilBuffer fields instead of
Attachment[BUFFER_DEPTH/STENCIL].Renderbuffer. The former may be wrappers
around combined depth/stencil renderbuffers attached at the later points.
Diffstat (limited to 'src/mesa/swrast/s_triangle.c')
-rw-r--r-- | src/mesa/swrast/s_triangle.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_triangle.c b/src/mesa/swrast/s_triangle.c index c364b0b0e84..1e3d76874a3 100644 --- a/src/mesa/swrast/s_triangle.c +++ b/src/mesa/swrast/s_triangle.c @@ -905,8 +905,7 @@ fast_persp_span(GLcontext *ctx, struct sw_span *span, #define NAME occlusion_zless_triangle #define INTERP_Z 1 #define SETUP_CODE \ - struct gl_renderbuffer *rb \ - = ctx->DrawBuffer->Attachment[BUFFER_DEPTH].Renderbuffer; \ + struct gl_renderbuffer *rb = ctx->DrawBuffer->_DepthBuffer; \ struct gl_query_object *q = ctx->Query.CurrentOcclusionObject; \ ASSERT(ctx->Depth.Test); \ ASSERT(!ctx->Depth.Mask); \ |