summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/nouveau/nv10_state_fb.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2011-12-10 11:44:43 -0700
committerBrian Paul <brianp@vmware.com>2011-12-13 06:45:36 -0700
commita782db5570a45008f153396070eae153305a7953 (patch)
tree7688ba5e3728611ce6360dac8bc2a1054af822ce /src/mesa/drivers/dri/nouveau/nv10_state_fb.c
parentd1240928641f5073865cc2f3ef87bd3b0cd64b04 (diff)
downloadexternal_mesa3d-a782db5570a45008f153396070eae153305a7953.zip
external_mesa3d-a782db5570a45008f153396070eae153305a7953.tar.gz
external_mesa3d-a782db5570a45008f153396070eae153305a7953.tar.bz2
nouveau: stop using _DepthBuffer, _StencilBuffer fields
Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nv10_state_fb.c')
-rw-r--r--src/mesa/drivers/dri/nouveau/nv10_state_fb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nv10_state_fb.c b/src/mesa/drivers/dri/nouveau/nv10_state_fb.c
index 0505547..a590bcd 100644
--- a/src/mesa/drivers/dri/nouveau/nv10_state_fb.c
+++ b/src/mesa/drivers/dri/nouveau/nv10_state_fb.c
@@ -125,9 +125,9 @@ nv10_emit_framebuffer(struct gl_context *ctx, int emit)
}
/* depth/stencil */
- if (fb->_DepthBuffer) {
+ if (fb->Attachment[BUFFER_DEPTH].Renderbuffer) {
s = &to_nouveau_renderbuffer(
- fb->_DepthBuffer->Wrapped)->surface;
+ fb->Attachment[BUFFER_DEPTH].Renderbuffer)->surface;
rt_format |= get_rt_format(s->format);
zeta_pitch = s->pitch;