st/mesa: Handle wrapped depth buffers in st_copy_texsubimage().
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user