radeon: fix copy and paste typo
authorMaciej Cencora <m.cencora@gmail.com>
Sun, 5 Jul 2009 14:17:12 +0000 (16:17 +0200)
committerMaciej Cencora <m.cencora@gmail.com>
Wed, 8 Jul 2009 16:42:39 +0000 (18:42 +0200)
src/mesa/drivers/dri/radeon/radeon_common.c

index bac72fbdfa7a5e7b806c0b2eaa1771b9831ad4ec..42922732ecd0d38dd57825096bb0b5af94cb7d42 100644 (file)
@@ -713,7 +713,7 @@ void radeon_draw_buffer(GLcontext *ctx, struct gl_framebuffer *fb)
        }
 
        if (fb->_StencilBuffer && fb->_StencilBuffer->Wrapped) {
-               rrbStencil = radeon_renderbuffer(fb->_DepthBuffer->Wrapped);
+               rrbStencil = radeon_renderbuffer(fb->_StencilBuffer->Wrapped);
                if (rrbStencil && rrbStencil->bo) {
                        radeon->vtbl.fallback(ctx, RADEON_FALLBACK_STENCIL_BUFFER, GL_FALSE);
                        /* need to re-compute stencil hw state */