summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_depthstencil.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-12-10 11:44:43 -0700
committerBrian Paul <[email protected]>2011-12-13 06:45:37 -0700
commit2ac02ea29fad959d1011513bf7e90da875ba675b (patch)
treefa13c19226d3ca642cba5120e0acf88eb06fe08b /src/mesa/swrast/s_depthstencil.c
parent23527eb357cc9b78d18ee8317b0186bbe9f1c509 (diff)
swrast: update depth/stencil wrapper sizes
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/swrast/s_depthstencil.c')
-rw-r--r--src/mesa/swrast/s_depthstencil.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_depthstencil.c b/src/mesa/swrast/s_depthstencil.c
index 9799f482b29..dc768e21699 100644
--- a/src/mesa/swrast/s_depthstencil.c
+++ b/src/mesa/swrast/s_depthstencil.c
@@ -989,8 +989,10 @@ _swrast_update_depth_buffer(struct gl_context *ctx, struct gl_framebuffer *fb)
wrapper = new_z24_renderbuffer_wrapper(ctx, depthRb);
}
_mesa_reference_renderbuffer(&fb->_DepthBuffer, wrapper);
- ASSERT(fb->_DepthBuffer->Wrapped == depthRb);
}
+ ASSERT(fb->_DepthBuffer->Wrapped == depthRb);
+ fb->_DepthBuffer->Width = depthRb->Width;
+ fb->_DepthBuffer->Height = depthRb->Height;
}
else {
/* depthRb may be null */
@@ -1023,8 +1025,10 @@ _swrast_update_stencil_buffer(struct gl_context *ctx, struct gl_framebuffer *fb)
struct gl_renderbuffer *wrapper
= new_s8_renderbuffer_wrapper(ctx, stencilRb);
_mesa_reference_renderbuffer(&fb->_StencilBuffer, wrapper);
- ASSERT(fb->_StencilBuffer->Wrapped == stencilRb);
}
+ ASSERT(fb->_StencilBuffer->Wrapped == stencilRb);
+ fb->_StencilBuffer->Width = stencilRb->Width;
+ fb->_StencilBuffer->Height = stencilRb->Height;
}
else {
/* stencilRb may be null */