mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-10-18 11:18:30 +00:00
Make sure gfx_update_loaded_texture() stays in bounds
This commit is contained in:
parent
8fb5064847
commit
d541d626c4
1 changed files with 1 additions and 0 deletions
|
@ -197,6 +197,7 @@ static const uint8_t missing_texture[MISSING_W * MISSING_H * 4] = {
|
|||
static bool sOnlyTextureChangeOnAddrChange = false;
|
||||
|
||||
static void gfx_update_loaded_texture(uint8_t tile_number, uint32_t size_bytes, const uint8_t* addr) {
|
||||
if (tile_number > 1) { return; }
|
||||
if (!sOnlyTextureChangeOnAddrChange) {
|
||||
rdp.textures_changed[tile_number] = true;
|
||||
} else if (!rdp.textures_changed[tile_number]) {
|
||||
|
|
Loading…
Reference in a new issue