projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f24cf82
)
mesa: only copy requested compressed teximage cubemap faces
author
Christoph Haag
<haagch@frickel.club>
Sat, 19 Aug 2017 23:59:43 +0000
(
01:59
+0200)
committer
Ilia Mirkin
<imirkin@alum.mit.edu>
Sun, 20 Aug 2017 21:01:48 +0000
(17:01 -0400)
This is analogous to commit
2259b11
which 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
src/mesa/main/teximage.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/teximage.c
b/src/mesa/main/teximage.c
index 7bcd734204c7d1a986764d4ad029f00cc7f20c54..e5dc469437f639872d6edb82a36f7745ef41c557 100644
(file)
--- a/
src/mesa/main/teximage.c
+++ b/
src/mesa/main/teximage.c
@@
-4968,13
+4968,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 */