<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - segfault in glCompressedTextureSubImage3D"
href="https://bugs.freedesktop.org/show_bug.cgi?id=102308#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - segfault in glCompressedTextureSubImage3D"
href="https://bugs.freedesktop.org/show_bug.cgi?id=102308">bug 102308</a>
from <span class="vcard"><a class="email" href="mailto:haagch@frickel.club" title="Christoph Haag <haagch@frickel.club>"> <span class="fn">Christoph Haag</span></a>
</span></b>
<pre>Tried it and hifi works with it. Thanks!
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 7bcd734204..e5dc469437 100644
--- 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 */</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>