From 284adb6ac695611d0e01130c8f7030a8a9b1bb32 Mon Sep 17 00:00:00 2001 From: pogokeen Date: Thu, 8 Aug 2019 23:00:02 +0000 Subject: [PATCH] Fix issue with indexed colour textures where in the case that tiles entered the texcache while !waloff[picnum] & were later (re)loaded, the earlier pth pointing to the tilesheet containing the blank tile would never be properly replaced with an updated gl texture. git-svn-id: https://svn.eduke32.com/eduke32@7929 1a8010ca-5511-0410-912e-c29ae57300e0 # Conflicts: # source/build/src/polymost.cpp --- source/build/src/tiles.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/build/src/tiles.cpp b/source/build/src/tiles.cpp index 607871ff0..5cb995fc5 100644 --- a/source/build/src/tiles.cpp +++ b/source/build/src/tiles.cpp @@ -629,6 +629,7 @@ bool tileLoad(int16_t tileNum) int type; for (type = 0; type <= 1; ++type) { + gltexinvalidate(tileNum, 0, (type ? DAMETH_CLAMPED : DAMETH_MASK) | PTH_INDEXED); texcache_fetch(tileNum, 0, 0, (type ? DAMETH_CLAMPED : DAMETH_MASK) | PTH_INDEXED); } }