mirror of
https://github.com/Ellpeck/Illumilib.git
synced 2024-12-26 01:29:24 +01:00
don't dispose lighting systems in the destructors
This commit is contained in:
parent
01575ed42d
commit
acffc054bf
3 changed files with 1 additions and 9 deletions
|
@ -5,10 +5,6 @@ namespace Illumilib.System {
|
||||||
|
|
||||||
public abstract LightingType Type { get; }
|
public abstract LightingType Type { get; }
|
||||||
|
|
||||||
~LightingSystem() {
|
|
||||||
this.Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public abstract bool Initialize();
|
public abstract bool Initialize();
|
||||||
|
|
||||||
public abstract void SetAllLighting(float r, float g, float b);
|
public abstract void SetAllLighting(float r, float g, float b);
|
||||||
|
@ -23,9 +19,7 @@ namespace Illumilib.System {
|
||||||
|
|
||||||
public abstract void SetMouseLighting(float r, float g, float b);
|
public abstract void SetMouseLighting(float r, float g, float b);
|
||||||
|
|
||||||
public virtual void Dispose() {
|
public virtual void Dispose() {}
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -18,7 +18,6 @@ namespace Illumilib.System {
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Dispose() {
|
public override void Dispose() {
|
||||||
base.Dispose();
|
|
||||||
this.ClearBitmap();
|
this.ClearBitmap();
|
||||||
try {
|
try {
|
||||||
LogitechGsdk.LogiLedShutdown();
|
LogitechGsdk.LogiLedShutdown();
|
||||||
|
|
|
@ -21,7 +21,6 @@ namespace Illumilib.System {
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Dispose() {
|
public override void Dispose() {
|
||||||
base.Dispose();
|
|
||||||
try {
|
try {
|
||||||
this.chroma?.UninitializeAsync();
|
this.chroma?.UninitializeAsync();
|
||||||
} catch {
|
} catch {
|
||||||
|
|
Loading…
Reference in a new issue