Skip to content

Commit 4f16f9e

Browse files
committed
Recreate offscreen context when render target should be recreatead.
1 parent 93b4948 commit 4f16f9e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/WindowsAppSupport/WAS_Direct2DContext.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ void Direct2DContext::EndDraw ()
188188
HRESULT result = renderTarget->EndDraw ();
189189
if (result == D2DERR_RECREATE_TARGET) {
190190
CreateRenderTarget ();
191+
CreateOffscreenContext ();
191192
}
192193
}
193194

0 commit comments

Comments
 (0)