WPF - WritableBitmapRenderHandler Avoid null bitmap references upon wakeup. (#4619)

Force initial bitmap creation upon wakeup when the image.source is null... Happens if sizing etc. rapidly and the UI thread short circuits when CreateNewBitMap is true and the first wake up occurs with it 'false' amd image.Source is still null...
This commit is contained in:
Andrew Bushnell
2023-10-31 16:14:36 -04:00
committed by GitHub
parent b4ee60a778
commit cbc89802ef
@@ -134,7 +134,7 @@ namespace CefSharp.Wpf.Rendering
return;
}
if (createNewBitmap)
if (createNewBitmap || image.Source is null)
{
if (image.Source != null)
{