mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-14 01:00:17 +01:00
st/mesa: Handle wrapped depth buffers in st_copy_texsubimage().
(cherry picked from commit 59051ad443)
This commit is contained in:
parent
b8c16ee7b1
commit
7ffeced927
1 changed files with 3 additions and 0 deletions
|
|
@ -1523,6 +1523,9 @@ st_copy_texsubimage(GLcontext *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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue