Clear display buffer before allocation

Clear the display buffer before allocating new buffers.
This commit is contained in:
rcaridade145 2025-12-19 15:15:12 +00:00 committed by GitHub
parent 3746f018c3
commit 5b62e9930d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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++)
{