aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/state_tracker/st_cb_texture.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-12-13 15:54:46 +0100
committermarha <marha@users.sourceforge.net>2011-12-13 15:54:46 +0100
commitb9c84e8e3433d8804b99ec82065ec1e920469d87 (patch)
tree544149b4c639f53adfc1a9a1d5ba91380adfe910 /mesalib/src/mesa/state_tracker/st_cb_texture.c
parent5efb0a5e19b75137b7294b27f4e7878aeb8f0927 (diff)
downloadvcxsrv-b9c84e8e3433d8804b99ec82065ec1e920469d87.tar.gz
vcxsrv-b9c84e8e3433d8804b99ec82065ec1e920469d87.tar.bz2
vcxsrv-b9c84e8e3433d8804b99ec82065ec1e920469d87.zip
git update pixman mesa 13 dec 2011
Diffstat (limited to 'mesalib/src/mesa/state_tracker/st_cb_texture.c')
-rw-r--r--mesalib/src/mesa/state_tracker/st_cb_texture.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/mesalib/src/mesa/state_tracker/st_cb_texture.c b/mesalib/src/mesa/state_tracker/st_cb_texture.c
index 52f654d7d..289ad5114 100644
--- a/mesalib/src/mesa/state_tracker/st_cb_texture.c
+++ b/mesalib/src/mesa/state_tracker/st_cb_texture.c
@@ -1385,10 +1385,7 @@ st_copy_texsubimage(struct gl_context *ctx,
/* determine if copying depth or color data */
if (texBaseFormat == GL_DEPTH_COMPONENT ||
texBaseFormat == GL_DEPTH_STENCIL) {
- strb = st_renderbuffer(fb->_DepthBuffer);
- if (strb->Base.Wrapped) {
- strb = st_renderbuffer(strb->Base.Wrapped);
- }
+ strb = st_renderbuffer(fb->Attachment[BUFFER_DEPTH].Renderbuffer);
}
else {
/* texBaseFormat == GL_RGB, GL_RGBA, GL_ALPHA, etc */