Skip to content

Commit

Permalink
renderer/texture: Fix texture state modification before loading a game
Browse files Browse the repository at this point in the history
  • Loading branch information
Macdu committed Nov 8, 2023
1 parent ef7e635 commit b2b2205
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vita3k/renderer/src/texture/replacement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ void TextureCache::set_replacement_state(bool import_textures, bool export_textu
this->save_as_png = export_as_png;

// invalidate all the current textures, will force all of them to be re-uploaded next frame
for (int i = 0; i < TextureCacheSize; i++) {
texture_queue.items[i].content.hash = 0;
texture_queue.items[i].content.dirty = true;
for (auto &queue_item : texture_queue.items) {
queue_item.content.hash = 0;
queue_item.content.dirty = true;
}

refresh_available_textures();
Expand Down

0 comments on commit b2b2205

Please sign in to comment.