mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-12-29 07:37:03 +00:00
h264: Clear display buffer before allocation (#1750)
This commit is contained in:
parent
7dd0b90f53
commit
7ab5c5e267
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue