Commit 3837ba15 authored by François Bertel's avatar François Bertel Committed by David Partyka

BUG:result of IsDirect() was based on fullscreen mode flag in vtkCocoaRenderWindow

parent 2549b294
......@@ -308,16 +308,7 @@ int vtkCocoaRenderWindow::IsDirect()
{
return 0;
}
NSOpenGLContext* context = (NSOpenGLContext*)this->GetContextId();
GLint currentScreen = [context currentVirtualScreen];
NSOpenGLPixelFormat* pixelFormat = (NSOpenGLPixelFormat*)this->GetPixelFormat();
GLint pfd;
[pixelFormat getValues: &pfd forAttribute: NSOpenGLPFAFullScreen forVirtualScreen: currentScreen];
int isDirect = (pfd == 0) ? 0 : 1;
return isDirect;
return 1;
}
//----------------------------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment