diff --git a/modules/juce_graphics/native/juce_Direct2DHwndContext_windows.cpp b/modules/juce_graphics/native/juce_Direct2DHwndContext_windows.cpp index 8d9d5a7610..ee5fe35d24 100644 --- a/modules/juce_graphics/native/juce_Direct2DHwndContext_windows.cpp +++ b/modules/juce_graphics/native/juce_Direct2DHwndContext_windows.cpp @@ -170,10 +170,6 @@ private: RectangleList getPaintAreas() const override { - // Does the entire buffer need to be filled? - if (swap.state == SwapChain::State::bufferAllocated) - return swap.getSize(); - return deferredRepaints; } @@ -422,6 +418,7 @@ Image Direct2DHwndContext::createSnapshot() const void Direct2DHwndContext::clearTargetBuffer() { + applyPendingClipList(); pimpl->getDeviceContext()->Clear(); }