The current implementation on Mac OS X called update() inside
the cocoa plugin from the GUI thread, which breaks when trying
to use the GL context from another thread and the window gets
resized. We now only call it from makeCurrent()
Change-Id: I025aad3a3b140e85e729816bf3b68827337cc80d
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
setActiveWindow(window);
[m_context makeCurrentContext];
+ update();
return true;
}
[[m_nsWindow contentView] setFrameSize:bounds.size];
[m_nsWindow setContentSize : bounds.size];
[m_nsWindow setFrameOrigin : bounds.origin];
-
- if (m_glContext)
- m_glContext->update();
}
void QCocoaWindow::setVisible(bool visible)
void QCocoaWindow::windowDidMove()
{
- if (m_glContext)
- m_glContext->update();
-
NSRect rect = [[m_nsWindow contentView]frame];
NSRect windowRect = [m_nsWindow frame];
void QCocoaWindow::windowDidResize()
{
- if (m_glContext)
- m_glContext->update();
-
NSRect rect = [[m_nsWindow contentView]frame];
NSRect windowRect = [m_nsWindow frame];