mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 02:46:49 +00:00
proper disposal of single buffer sounds
This was SVN commit r12574.
This commit is contained in:
@@ -41,10 +41,9 @@ CSoundItem::CSoundItem(CSoundData* sndData)
|
||||
CSoundItem::~CSoundItem()
|
||||
{
|
||||
AL_CHECK
|
||||
ALuint al_buf;
|
||||
|
||||
Stop();
|
||||
alSourceUnqueueBuffers(m_ALSource, 1, &al_buf);
|
||||
alSourcei(m_ALSource, AL_BUFFER, 0);
|
||||
AL_CHECK
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user