diff options
author | Henri Verbeet <hverbeet@gmail.com> | 2010-12-22 08:28:39 +0100 |
---|---|---|
committer | Henri Verbeet <hverbeet@gmail.com> | 2010-12-31 07:51:53 +0100 |
commit | 7ffeced927e22965145b907c1941cdead6c9615b (patch) | |
tree | fe40b93bf4a2e781a2a5cc15b5f32d58fee90c53 | |
parent | b8c16ee7b10d0f7c6dcf79c07ed5d45142e8dfb3 (diff) |
st/mesa: Handle wrapped depth buffers in st_copy_texsubimage().
(cherry picked from commit 59051ad44310d7f744fcb0706326564990b554dd)
-rw-r--r-- | src/mesa/state_tracker/st_cb_texture.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index 011b63028d..f030b62b44 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -1523,6 +1523,9 @@ st_copy_texsubimage(GLcontext *ctx, if (texBaseFormat == GL_DEPTH_COMPONENT || texBaseFormat == GL_DEPTH_STENCIL) { strb = st_renderbuffer(fb->_DepthBuffer); + if (strb->Base.Wrapped) { + strb = st_renderbuffer(strb->Base.Wrapped); + } } else { /* texBaseFormat == GL_RGB, GL_RGBA, GL_ALPHA, etc */ |