mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-06-11 17:14:58 -06:00
Clear display buffer before allocation
Clear the display buffer before allocating new buffers.
This commit is contained in:
parent
3746f018c3
commit
5b62e9930d
@ -376,6 +376,8 @@ namespace H264
|
||||
WORD32 status = ih264d_api_function(m_codecCtx, &s_ctl_ip, &s_ctl_op);
|
||||
cemu_assert(!status);
|
||||
|
||||
//away with the old.
|
||||
m_displayBuf.clear();
|
||||
// allocate
|
||||
for (uint32 i = 0; i < s_ctl_op.u4_num_disp_bufs; i++)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user