diff --git a/modules/juce_graphics/native/juce_Direct2DHwndContext_windows.cpp b/modules/juce_graphics/native/juce_Direct2DHwndContext_windows.cpp index aee0cabf9c..66e7539065 100644 --- a/modules/juce_graphics/native/juce_Direct2DHwndContext_windows.cpp +++ b/modules/juce_graphics/native/juce_Direct2DHwndContext_windows.cpp @@ -117,6 +117,9 @@ public: { const std::scoped_lock lock { mutex }; + if (preparing == nullptr) + return; + if (readyToDisplay != nullptr) { // Copy the dirty regions from the newest presentation over the top of the 'ready'