mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 10:05:44 -04:00
Dispose device properly in Direct3D 9 api.
This commit is contained in:
parent
97c1e598f6
commit
dfab27c49c
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user