summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorHenri Verbeet <[email protected]>2010-12-22 08:28:39 +0100
committerHenri Verbeet <[email protected]>2010-12-31 07:49:59 +0100
commit59051ad44310d7f744fcb0706326564990b554dd (patch)
tree097b975b87914c989aa7753e9bcb5ad9ee357e18 /src/mesa/state_tracker
parent8d79765feb8fa003e629d4c5890af636324def9f (diff)
st/mesa: Handle wrapped depth buffers in st_copy_texsubimage().
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_cb_texture.c3
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 866426a7549..14d33f7b490 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 */