mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-19 04:19:57 -04:00
Record a draw's own texture binding that got the stand-in, and a sampled pool slot that is not registered.
In towns, kerb, stair and wall-top edges are drawn untextured for one frame when the game registers a round of streamed textures, and no pool entry of those textures goes to the stand-in in such a frame. A binding written into a draw's own set, and a slot that is unregistered when its marks are read, left no event until now. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -2968,7 +2968,11 @@ void vk_pool_marks_read(const uint32_t *marks, uint32_t n) {
|
||||
if (n > (uint32_t)ntslots) n = (uint32_t)ntslots;
|
||||
uint32_t marked = 0;
|
||||
for (uint32_t id = 0; id < n; id++) {
|
||||
if (!marks[id] || !tslots[id].used) continue;
|
||||
if (!marks[id]) continue;
|
||||
if (!tslots[id].used) { // sampled, and not a registered slot now: what it showed is not known here
|
||||
if (flight_on) flight_tex(FLIGHT_TEX_UNREG, 0, 0, 0, 0, 0, 0, 0, id);
|
||||
continue;
|
||||
}
|
||||
marked++;
|
||||
TexSlot *s = &tslots[id];
|
||||
if (s->ce && s->cgen == agen[sinfo[id] & 0xffff]) { // what the slot resolves to now
|
||||
|
||||
Reference in New Issue
Block a user