From 1a5f1bdb428ea3ded1e77796590014f89fe78f77 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 16 Nov 2005 04:09:26 +0000 Subject: 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. --- src/mesa/swrast/s_texstore.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/mesa/swrast/s_texstore.c') diff --git a/src/mesa/swrast/s_texstore.c b/src/mesa/swrast/s_texstore.c index ff1f9d9992d..a3e695549eb 100644 --- a/src/mesa/swrast/s_texstore.c +++ b/src/mesa/swrast/s_texstore.c @@ -94,8 +94,7 @@ static GLfloat * read_depth_image( GLcontext *ctx, GLint x, GLint y, GLsizei width, GLsizei height ) { - struct gl_renderbuffer *rb - = ctx->ReadBuffer->Attachment[BUFFER_DEPTH].Renderbuffer; + struct gl_renderbuffer *rb = ctx->ReadBuffer->_DepthBuffer; SWcontext *swrast = SWRAST_CONTEXT(ctx); GLfloat *image, *dst; GLint i; @@ -125,10 +124,8 @@ static GLuint * read_depth_stencil_image(GLcontext *ctx, GLint x, GLint y, GLsizei width, GLsizei height) { - struct gl_renderbuffer *depthRb - = ctx->ReadBuffer->Attachment[BUFFER_DEPTH].Renderbuffer; - struct gl_renderbuffer *stencilRb - = ctx->ReadBuffer->Attachment[BUFFER_STENCIL].Renderbuffer; + struct gl_renderbuffer *depthRb = ctx->ReadBuffer->_DepthBuffer; + struct gl_renderbuffer *stencilRb = ctx->ReadBuffer->_StencilBuffer; SWcontext *swrast = SWRAST_CONTEXT(ctx); GLuint *image, *dst; GLint i; -- cgit v1.2.3