commit | 19111ce77b388cd27c29f0a8a1cdc078ed5bdd26 | [log] [tgz] |
---|---|---|
author | Richard Geldreich <richgel99@protonmail.com> | Fri Feb 11 21:28:02 2022 -0500 |
committer | Richard Geldreich <richgel99@protonmail.com> | Fri Feb 11 21:28:02 2022 -0500 |
tree | 5f673b654dbfa281eb570e4e216f4237dae3d52d | |
parent | 43c4322a7250a96d174fdbf679537f57848b18b5 [diff] |
Fixing glTypeSize so it's always 1, as the KTX spec requires.
diff --git a/encoder/basisu_gpu_texture.cpp b/encoder/basisu_gpu_texture.cpp index 0b40297..dec769d 100644 --- a/encoder/basisu_gpu_texture.cpp +++ b/encoder/basisu_gpu_texture.cpp
@@ -1504,6 +1504,8 @@ header.m_pixelWidth = width; header.m_pixelHeight = height; + + header.m_glTypeSize = 1; header.m_glInternalFormat = internal_fmt; header.m_glBaseInternalFormat = base_internal_fmt;