fna-workbench

fna-workbench Commit Details


Date:2016-03-07 07:35:55 (8 years 9 months ago)
Author:Ethan Lee
Branch:master
Commit:32cf0e4a396306a299df41cf7d93f71d04dd78ca
Parents: a6f8cae346943ee30d610d67809821acc3a38e30
Message:Check for disposed textures when set (thanks QuarkRobot!)

Changes:

File differences

src/Graphics/TextureCollection.cs
88
99
1010
11
1112
1213
1314
......
2526
2627
2728
29
30
31
32
33
34
35
36
37
2838
2939
3040
#endregion
#region Using Statements
using System;
using System.Collections.Generic;
#endregion
}
set
{
#if DEBUG
// XNA checks for disposed textures here! -flibit
if (value.IsDisposed)
{
throw new ObjectDisposedException(
value.GetType().ToString()
);
}
#endif
textures[index] = value;
if (!modifiedSamplers.Contains(index))
{

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.05072s using 13 queries.