mirror of https://github.com/mgba-emu/mgba.git
Vita: Clear both buffers when loading a game
This commit is contained in:
parent
bedbaf3978
commit
e5ab0ae277
1
CHANGES
1
CHANGES
|
@ -109,6 +109,7 @@ Misc:
|
||||||
- Qt: Window title updates can be disabled (closes mgba.io/i/1912)
|
- Qt: Window title updates can be disabled (closes mgba.io/i/1912)
|
||||||
- Util: Reset vector size on deinit
|
- Util: Reset vector size on deinit
|
||||||
- VFS: Change semantics of VFile.sync on mapped files (fixes mgba.io/i/1730)
|
- VFS: Change semantics of VFile.sync on mapped files (fixes mgba.io/i/1730)
|
||||||
|
- Vita: Clear both buffers when loading a game
|
||||||
|
|
||||||
0.8.3: (2020-08-03)
|
0.8.3: (2020-08-03)
|
||||||
Emulation fixes:
|
Emulation fixes:
|
||||||
|
|
|
@ -328,6 +328,9 @@ void mPSP2Setup(struct mGUIRunner* runner) {
|
||||||
currentTex = 0;
|
currentTex = 0;
|
||||||
screenshot = vita2d_create_empty_texture_format(256, toPow2(height), SCE_GXM_TEXTURE_FORMAT_X8U8U8U8_1BGR);
|
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->setVideoBuffer(runner->core, vita2d_texture_get_datap(tex[currentTex]), 256);
|
||||||
runner->core->setAudioBufferSize(runner->core, PSP2_SAMPLES);
|
runner->core->setAudioBufferSize(runner->core, PSP2_SAMPLES);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue