Cull Revision magenta out-of-bounds void sentinel tile (tile 160)

This commit is contained in:
Luxferre committed 2026-12-01 14:35:30 +02:00
1 parent 3b4fbe76af
commit 35cdf34d03
3 files changed
+47 -7

No files matched your search

+5
View File
@@ -45,6 +45,11 @@ int main() {
CHECK(wtex.load(vfs, w, pal));
CHECK(wtex.tile_rgba.size() == 256u * 64u * 64u * 4u);
CHECK(wtex.sky_rgba.size() == 256u * 256u * 4u);
CHECK(wtex.tile_rgba[3] == 255);
constexpr size_t kVoidTileBase = 160u * 64u * 64u * 4u;
for (size_t p = 0; p < 64u * 64u; ++p) {
CHECK(wtex.tile_rgba[kVoidTileBase + p * 4u + 3u] == 0);
}
}
std::cout << "[PASS] Palette, 9 ColorTables, 9 WorldTextures & Skies\n";