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:49:59 +0100 |
commit | 59051ad44310d7f744fcb0706326564990b554dd (patch) | |
tree | 097b975b87914c989aa7753e9bcb5ad9ee357e18 /src | |
parent | 8d79765feb8fa003e629d4c5890af636324def9f (diff) |
st/mesa: Handle wrapped depth buffers in st_copy_texsubimage().
Diffstat (limited to 'src')
-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 866426a754..14d33f7b49 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -1528,6 +1528,9 @@ st_copy_texsubimage(struct gl_context *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 */ |