mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-15 02:25:32 -04:00
Dispose device properly in Direct3D 9 api.
This commit is contained in:
parent
97c1e598f6
commit
dfab27c49c
@ -473,6 +473,11 @@ namespace ClassicalSharp.GraphicsAPI {
|
|||||||
curStack.SetTop( ref dxMatrix );
|
curStack.SetTop( ref dxMatrix );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void Dispose() {
|
||||||
|
base.Dispose();
|
||||||
|
device.Dispose();
|
||||||
|
}
|
||||||
|
|
||||||
public override void PrintApiSpecificInfo() {
|
public override void PrintApiSpecificInfo() {
|
||||||
Console.WriteLine( "D3D tex memory available: " + (uint)device.AvailableTextureMemory );
|
Console.WriteLine( "D3D tex memory available: " + (uint)device.AvailableTextureMemory );
|
||||||
Console.WriteLine( "D3D software vertex processing: " + device.SoftwareVertexProcessing );
|
Console.WriteLine( "D3D software vertex processing: " + device.SoftwareVertexProcessing );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user