Skip to content

Commit cbc8980

Browse files
authored
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...
1 parent b4ee60a commit cbc8980

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CefSharp.Wpf/Rendering/WritableBitmapRenderHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ protected override void CreateOrUpdateBitmap(bool isPopup, Rect dirtyRect, IntPt
134134
return;
135135
}
136136

137-
if (createNewBitmap)
137+
if (createNewBitmap || image.Source is null)
138138
{
139139
if (image.Source != null)
140140
{

0 commit comments

Comments
 (0)