[Mesa-dev] [Bug 102308] segfault in glCompressedTextureSubImage3D

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Aug 19 17:48:25 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=102308

--- Comment #3 from Christoph Haag <haagch at frickel.club> ---
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 */

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170819/69b6b77f/attachment.html>


More information about the mesa-dev mailing list