From 9a93fb03a4ae05fdf1a6313983ff623102e950ae Mon Sep 17 00:00:00 2001 From: reuk Date: Fri, 23 Aug 2024 13:50:51 +0100 Subject: [PATCH] Direct2D: Add null check in PresentationQueue --- .../juce_graphics/native/juce_Direct2DHwndContext_windows.cpp | 3 +++ 1 file changed, 3 insertions(+) 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'