onox / orka

The OpenGL 4.6 Rendering Kernel in Ada 2022
https://orka-engine.netlify.com/
Apache License 2.0
61 stars 2 forks source link

Assert_Failure error raised in orka-ktx.adb line 86 for some compressed textures #63

Closed onox closed 4 years ago

onox commented 4 years ago

It seems that many .ktx files in Vulkan-Samples-Assets in scenes/ folder have an incorrect glTypeSize. The textures are compressed (glType = 0) and therefore glTypeSize must be 1 according to the KTX spec, but in the files it is 0.

Modify the assertions to allow 0 | 1 if the texture is compressed.