1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Direct2D: Avoid rare crashes due to nullptr deref of swapChainThread

This commit is contained in:
reuk 2024-09-09 17:19:55 +01:00
parent 6374540f19
commit 8a9fea51e5
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -393,7 +393,8 @@ private:
return false;
if (presentation.getPresentation() == nullptr)
presentation = swapChainThread->getFreshPresentation();
if (swapChainThread != nullptr)
presentation = swapChainThread->getFreshPresentation();
// Paint if:
// resources are allocated