mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
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:
@@ -134,7 +134,7 @@ namespace CefSharp.Wpf.Rendering
|
||||
return;
|
||||
}
|
||||
|
||||
if (createNewBitmap)
|
||||
if (createNewBitmap || image.Source is null)
|
||||
{
|
||||
if (image.Source != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user