mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 20:15:17 +00:00
Possible fix for crash in gfx_texture_cache_lookup()
This commit is contained in:
parent
8e01c6e4ef
commit
63a30f7838
1 changed files with 1 additions and 1 deletions
|
@ -308,7 +308,7 @@ static bool gfx_texture_cache_lookup(int tile, struct TextureHashmapNode **n, co
|
|||
}
|
||||
node = &(*node)->next;
|
||||
}
|
||||
if (gfx_texture_cache.pool_pos == sizeof(gfx_texture_cache.pool) / sizeof(struct TextureHashmapNode)) {
|
||||
if (gfx_texture_cache.pool_pos >= sizeof(gfx_texture_cache.pool) / sizeof(struct TextureHashmapNode)) {
|
||||
// Pool is full. We just invalidate everything and start over.
|
||||
gfx_texture_cache.pool_pos = 0;
|
||||
node = &gfx_texture_cache.hashmap[hash];
|
||||
|
|
Loading…
Reference in a new issue