mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 15:32:59 +00:00
Fix issues with the GSFont
This commit is contained in:
parent
6507b86973
commit
cf68058e67
@ -182,7 +182,6 @@ static void clearVRAMIfNeeded(ps2_video_t *ps2, void *frame, int width, int heig
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ps2->clearVRAM) {
|
if (ps2->clearVRAM) {
|
||||||
gsKit_clear(ps2->gsGlobal, GS_BLACK);
|
|
||||||
gsKit_vram_clear(ps2->gsGlobal);
|
gsKit_vram_clear(ps2->gsGlobal);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -266,6 +265,7 @@ static bool ps2_gfx_frame(void *data, const void *frame,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
clearVRAMIfNeeded(ps2, frame, width, height);
|
clearVRAMIfNeeded(ps2, frame, width, height);
|
||||||
|
gsKit_clear(ps2->gsGlobal, GS_BLACK);
|
||||||
|
|
||||||
if (frame) {
|
if (frame) {
|
||||||
bool sendPalette = false;
|
bool sendPalette = false;
|
||||||
@ -277,7 +277,6 @@ static bool ps2_gfx_frame(void *data, const void *frame,
|
|||||||
ps2->iface.updatedPalette = false;
|
ps2->iface.updatedPalette = false;
|
||||||
padding = ps2->iface.padding;
|
padding = ps2->iface.padding;
|
||||||
if (ps2->iface.clearTexture) {
|
if (ps2->iface.clearTexture) {
|
||||||
gsKit_clear(ps2->gsGlobal, GS_BLACK);
|
|
||||||
ps2->iface.clearTexture = false;
|
ps2->iface.clearTexture = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -434,6 +433,8 @@ static void ps2_set_texture_enable(void *data, bool enable, bool fullscreen)
|
|||||||
if (ps2->menuVisible != enable) {
|
if (ps2->menuVisible != enable) {
|
||||||
/* If Menu change status, CLEAR VRAM */
|
/* If Menu change status, CLEAR VRAM */
|
||||||
ps2->clearVRAM = true;
|
ps2->clearVRAM = true;
|
||||||
|
ps2->iface.clearTexture = true;
|
||||||
|
ps2->iface.updatedPalette = true;
|
||||||
}
|
}
|
||||||
ps2->menuVisible = enable;
|
ps2->menuVisible = enable;
|
||||||
ps2->fullscreen = fullscreen;
|
ps2->fullscreen = fullscreen;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user