From fbae4fb7ebd024048ac899e2fb6c56f33e8d69b5 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 15 Feb 2020 10:55:05 +1100 Subject: Backport: Bug [#2138]. For pixmap, balance call to BeginDraw with EndDraw. This avoids a warning when Direct2D debugging turned on. Backport of changeset 7986:8c409393be53. --- win32/PlatWin.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index febc82171..3c5a5adf3 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -1098,7 +1098,9 @@ void SurfaceD2D::Clear() noexcept { clipsActive--; } if (ownRenderTarget) { + pRenderTarget->EndDraw(); pRenderTarget->Release(); + ownRenderTarget = false; } pRenderTarget = nullptr; } -- cgit v1.2.3