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:
parent
6374540f19
commit
8a9fea51e5
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue