On 12/22/2010 12:30 AM, Henri Verbeet wrote:
---
  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 866426a..14d33f7 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 */

Looks good.  Please cherry-pick to the 7.9 and 7.10 branches too.

-Brian

_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to