Fix minor typos

This commit is contained in:
2026-09-19 22:52:52 +02:00
parent b7077e6abb
commit b0617e043c
2 changed files with 3 additions and 3 deletions
@@ -584,7 +584,7 @@ bool TextureTool::ImportTextureStb(ImageType type, const StringView& path, Textu
}
}
// Use two data containers for texture importing for more optimzied performance
// Use two data containers for texture importing for more optimized performance
TextureData textureDataTmp;
TextureData* textureDataSrc = &textureData;
TextureData* textureDataDst = &textureDataTmp;
+2 -2
View File
@@ -141,9 +141,9 @@ int mode, detexBlock128 * DETEX_RESTRICT block) {
// 64-bit word boundary in any mode.
uint32_t bits;
if (block->index < 64)
bits = block->data0 >> block->index;
bits = (uint32_t)(block->data0 >> block->index);
else
bits = block->data1 >> (block->index - 64);
bits = (uint32_t)(block->data1 >> (block->index - 64));
for (int i = 0; i < nu_subsets * 2; i++) {
endpoint_array[i * 4 + 0] <<= 1;
endpoint_array[i * 4 + 1] <<= 1;