From 9596205a342babd77723787c06d72392dda31fda Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 7 Oct 2014 15:06:38 +1100 Subject: Trace failures to flush when drawing bitmaps in Direct2D. --- win32/PlatWin.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); } } -- cgit v1.2.3