all repos — mgba @ 395c3be24623314beba99531f40b7584c8379bd3

mGBA Game Boy Advance Emulator

Vita: Clear both buffers when loading a game
Vicki Pfau vi@endrift.com
Mon, 26 Oct 2020 23:55:33 -0700
commit

395c3be24623314beba99531f40b7584c8379bd3

parent

b4623c4b349a5c213b533434474627acb0eb8b7c

2 files changed, 4 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -37,6 +37,7 @@ - mVL: Fix injecting accidentally draining non-injection buffer

- VFS: Fix directory node listing on some filesystems Misc: - GBA Video: Improve speed of window texture generation on AMD + - Vita: Clear both buffers when loading a game 0.8.3: (2020-08-03) Emulation fixes:
M src/platform/psp2/psp2-context.csrc/platform/psp2/psp2-context.c

@@ -328,6 +328,9 @@ tex[1] = vita2d_create_empty_texture_format(256, toPow2(height), SCE_GXM_TEXTURE_FORMAT_X8U8U8U8_1BGR);

currentTex = 0; screenshot = vita2d_create_empty_texture_format(256, toPow2(height), SCE_GXM_TEXTURE_FORMAT_X8U8U8U8_1BGR); + memset(vita2d_texture_get_datap(tex[0]), 0xFF, 256 * toPow2(height) * 4); + memset(vita2d_texture_get_datap(tex[1]), 0xFF, 256 * toPow2(height) * 4); + runner->core->setVideoBuffer(runner->core, vita2d_texture_get_datap(tex[currentTex]), 256); runner->core->setAudioBufferSize(runner->core, PSP2_SAMPLES);