Dispose device properly in Direct3D 9 api.

This commit is contained in:
UnknownShadow200 2015-06-15 19:57:13 +10:00
parent 97c1e598f6
commit dfab27c49c

View File

@ -472,6 +472,11 @@ namespace ClassicalSharp.GraphicsAPI {
Matrix dxMatrix = Matrix.OrthoOffCenterRH( 0, width, height, 0, 0, 1 );
curStack.SetTop( ref dxMatrix );
}
public override void Dispose() {
base.Dispose();
device.Dispose();
}
public override void PrintApiSpecificInfo() {
Console.WriteLine( "D3D tex memory available: " + (uint)device.AvailableTextureMemory );