texture fix

This commit is contained in:
Jorijn van der Graaf 2026-02-24 04:28:16 +01:00
commit 00a5704653
2 changed files with 11 additions and 1 deletions

View file

@ -55,6 +55,7 @@ export namespace Crafter {
tex.pixels.resize(tex.sizeX * tex.sizeY * tex.sizeZ);
file.read(reinterpret_cast<char*>(tex.pixels.data()), tex.sizeX * tex.sizeY * tex.sizeZ * sizeof(T));
return tex;
}
static TextureAsset<T> LoadPNG(fs::path path) requires (std::same_as<T, Vector<std::uint8_t, 4, 0>>) {