diff --git a/src/Artemis.UI/Screens/Settings/Debug/Tabs/RenderDebugViewModel.cs b/src/Artemis.UI/Screens/Settings/Debug/Tabs/RenderDebugViewModel.cs index c757eb0b6..4413d17f4 100644 --- a/src/Artemis.UI/Screens/Settings/Debug/Tabs/RenderDebugViewModel.cs +++ b/src/Artemis.UI/Screens/Settings/Debug/Tabs/RenderDebugViewModel.cs @@ -55,7 +55,11 @@ namespace Artemis.UI.Screens.Settings.Debug.Tabs if (e.BitmapBrush?.Bitmap == null || e.BitmapBrush.Bitmap.Pixels.Length == 0) return; - if (!(CurrentFrame is WriteableBitmap writeableBitmap)) + var bitmapInfo = e.BitmapBrush.Bitmap.Info; + + if (!(CurrentFrame is WriteableBitmap writeableBitmap) || + writeableBitmap.Width != bitmapInfo.Width || + writeableBitmap.Height != bitmapInfo.Height) { CurrentFrame = e.BitmapBrush.Bitmap.ToWriteableBitmap(); return;