Dispose sound sources
This commit is contained in:
committed by
Matthias Mailänder
parent
84e6623773
commit
d91d1f5466
@@ -371,6 +371,11 @@ namespace OpenRA.Platforms.Default
|
|||||||
if (disposing)
|
if (disposing)
|
||||||
StopAllSounds();
|
StopAllSounds();
|
||||||
|
|
||||||
|
if (sourcePool.Count > 0)
|
||||||
|
AL10.alDeleteSources(PoolSize, sourcePool.Keys.ToArray());
|
||||||
|
|
||||||
|
sourcePool.Clear();
|
||||||
|
|
||||||
if (context != IntPtr.Zero)
|
if (context != IntPtr.Zero)
|
||||||
{
|
{
|
||||||
ALC10.alcMakeContextCurrent(IntPtr.Zero);
|
ALC10.alcMakeContextCurrent(IntPtr.Zero);
|
||||||
|
|||||||
Reference in New Issue
Block a user