mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
OpenGLContext: Avoid calling NSView::window from displaylink thread
This commit is contained in:
parent
0f174d5818
commit
16929c26f7
1 changed files with 2 additions and 5 deletions
|
|
@ -937,11 +937,8 @@ public:
|
|||
{
|
||||
return [this, display]
|
||||
{
|
||||
if (auto* view = nativeContext->getNSView())
|
||||
if (auto* window = [view window])
|
||||
if (auto* screen = [window screen])
|
||||
if (display == ScopedDisplayLink::getDisplayIdForScreen (screen))
|
||||
triggerRepaint();
|
||||
if (display == lastDisplay)
|
||||
triggerRepaint();
|
||||
};
|
||||
}));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue