Merge branch 'release-0.1' of https://github.com/Vocaluxe/Vocaluxe into release-0.1

This commit is contained in:
Alexander Eckart committed 2012-03-31 18:00:43 +02:00
commit 3dafd429d1
1 file changed
+3
+3
View File
@@ -593,9 +593,12 @@ namespace Vocaluxe.Lib.Draw
{ {
//Dispose all textures //Dispose all textures
foreach (KeyValuePair<int, Texture> p in _D3DTextures) foreach (KeyValuePair<int, Texture> p in _D3DTextures)
{
if (p.Value != null)
{ {
p.Value.Dispose(); p.Value.Dispose();
} }
}
TexturedColoredVertex.GetDeclaration(_Device).Dispose(); TexturedColoredVertex.GetDeclaration(_Device).Dispose();
_VertexBuffer.Dispose(); _VertexBuffer.Dispose();