0

I'm using glCompressedTexSubImage2D to update data to an ASTC_RGBA_6x6 format texture, but it seems that for some devices one should pass in an up-to-row-start size for param imageSize rather than the data size according to GL_INVALID_VALUE on glCompressedTexSubImage2D with an ASTC 8x8 texture.

Does anyone know how to find out when to use up-to-row-start size, and when to use the original size on any device? Is there any API or device param that I can use? Thank you in advance for any suggestion.

Currently I only know RedMI 4 would have this problem.

Nicol Bolas
  • 449,505
  • 63
  • 781
  • 982
Tiewei Li
  • 1
  • 1
  • "*Is there any API or device param that I can use?*" It's a driver bug. You're not supposed to have to do this in OpenGL. Driver bugs aren't advertised; they just exist. The only way to "know" is to ask other people, or just always round the size up. – Nicol Bolas Jul 03 '22 at 13:25
  • I see...I just thought that maybe this is a feature for some devices...Thank you! – Tiewei Li Jul 03 '22 at 14:20

0 Answers0