mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
mesa: only copy requested compressed teximage cubemap faces
This is analogous to commit2259b11which only fixed the regular case Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102308 Signed-off-by: Christoph Haag <haagch+mesadev@frickel.club> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: mesa-stable@lists.freedesktop.org (cherry picked from commit87556a650a)
This commit is contained in:
parent
2813e83f6c
commit
6389526ce5
1 changed files with 2 additions and 2 deletions
|
|
@ -4901,13 +4901,13 @@ compressed_tex_sub_image(unsigned dim, GLenum target, GLuint texture,
|
|||
}
|
||||
|
||||
/* Copy in each face. */
|
||||
for (int i = 0; i < 6; ++i) {
|
||||
for (int i = zoffset; i < zoffset + depth; ++i) {
|
||||
texImage = texObj->Image[i][level];
|
||||
assert(texImage);
|
||||
|
||||
compressed_texture_sub_image(ctx, 3, texObj, texImage,
|
||||
texObj->Target, level, xoffset, yoffset,
|
||||
zoffset, width, height, 1, format,
|
||||
0, width, height, 1, format,
|
||||
imageSize, pixels);
|
||||
|
||||
/* Compressed images don't have a client format */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue