Clear the buffer from X-RAM before updating its size

This commit is contained in:
Chris Robinson 2022-08-05 12:11:02 -07:00
parent 9d296a9c75
commit b77a556d7b

View File

@ -631,6 +631,9 @@ void LoadData(ALCcontext *context, ALbuffer *ALBuf, ALsizei freq, ALuint size,
}
newdata.swap(ALBuf->mData);
}
#ifdef ALSOFT_EAX
eax_x_ram_clear(*context->mALDevice, *ALBuf);
#endif
if(SrcType == UserFmtIMA4)
{