aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--win32/PlatWin.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx
index fa37ac7fe..7ac5826f7 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -1599,7 +1599,10 @@ void SurfaceD2D::Copy(PRectangle rc, Point from, Surface &surfaceSource) {
D2D1_RECT_F rcSource = {from.x, from.y, from.x + rc.Width(), from.y + rc.Height()};
pRenderTarget->DrawBitmap(pBitmap, rcDestination, 1.0f,
D2D1_BITMAP_INTERPOLATION_MODE_NEAREST_NEIGHBOR, rcSource);
- pRenderTarget->Flush();
+ hr = pRenderTarget->Flush();
+ if (FAILED(hr)) {
+ Platform::DebugPrintf("Failed Flush 0x%x\n", hr);
+ }
pBitmap->Release();
}
}