Skip to content

Commit

Permalink
Fix texture cache when switching renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
kelpsyberry committed May 9, 2024
1 parent 8a1f927 commit 70234b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/gpu/engine_3d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -537,8 +537,8 @@ impl Engine3d {
#[inline]
pub fn set_renderer_tx(&mut self, renderer_tx: Box<dyn RendererTx>) {
self.renderer_tx = renderer_tx;
self.rendering_state.texture_dirty = 0x3F;
self.rendering_state.tex_pal_dirty = 0xF;
self.rendering_state.texture_dirty = 0xF;
self.rendering_state.tex_pal_dirty = 0x3F;
}

#[inline]
Expand Down

0 comments on commit 70234b3

Please sign in to comment.