Clear the buffer from X-RAM before updating its size

master
Chris Robinson 2022-08-05 12:11:02 -07:00
parent 9d296a9c75
commit b77a556d7b
1 changed files with 3 additions and 0 deletions

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