Fix texture rectangles.

This commit is contained in:
Dario 2021-04-26 22:52:51 -03:00
parent 097caffd75
commit f099245092
1 changed files with 4 additions and 0 deletions

View File

@ -1609,6 +1609,10 @@ static void gfx_dp_set_fill_color(uint32_t packed_color) {
}
static void gfx_draw_rectangle(int32_t ulx, int32_t uly, int32_t lrx, int32_t lry) {
#ifdef GFX_SEPARATE_PROJECTIONS
separate_projections.is_ortho = true;
#endif
uint32_t saved_other_mode_h = rdp.other_mode_h;
uint32_t cycle_type = (rdp.other_mode_h & (3U << G_MDSFT_CYCLETYPE));