st/mesa: Handle wrapped depth buffers in st_copy_texsubimage().

This commit is contained in:
Henri Verbeet
2010-12-22 08:28:39 +01:00
parent 8d79765feb
commit 59051ad443
+3
View File
@@ -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 */