Krzysztof Krysiński
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
0 deletions
-
samples/GpuInterop/DrawingSurfaceDemoBase.cs
|
|
|
@ -33,7 +33,11 @@ public abstract class DrawingSurfaceDemoBase : Control, IGpuDemo |
|
|
|
protected override void OnDetachedFromLogicalTree(LogicalTreeAttachmentEventArgs e) |
|
|
|
{ |
|
|
|
if (_initialized) |
|
|
|
{ |
|
|
|
Surface?.Dispose(); |
|
|
|
FreeGraphicsResources(); |
|
|
|
} |
|
|
|
|
|
|
|
_initialized = false; |
|
|
|
base.OnDetachedFromLogicalTree(e); |
|
|
|
} |
|
|
|
|