kopaka1822 / ImageViewer

HDR, PFM, DDS, KTX, EXR, PNG, JPG, BMP image viewer and manipulator
MIT License
331 stars 37 forks source link

mapped etc2 types correctly, fixed ktx with etc2 texture opening issue #34

Closed sssooonnnggg closed 7 months ago

sssooonnnggg commented 7 months ago

references: https://registry.khronos.org/OpenGL-Refpages/es3.1/html/glCompressedTexImage2D.xhtml

FORMAT_RGBA_ETC2_SRGB_BLOCK8 should map to CMP_FORMAT_ETC2_SRGBA1 (block 8) FORMAT_RGBA_ETC2_SRGB_BLOCK16 shoudl map to CMP_FORMAT_ETC2_SRGBA (block 16)

texture for test: etc2.zip

kopaka1822 commented 7 months ago

thank you for the fix!