Skip to content
Snippets Groups Projects
Commit 01a29205 authored by Sean McBride's avatar Sean McBride Committed by Code Review
Browse files

Merge topic 'NSOpenGLPFACompliant' into master

468f25df Removed all uses of deprecated NSOpenGLPFACompliant
parents dfaddbaa 468f25df
No related branches found
No related tags found
No related merge requests found
......@@ -482,16 +482,7 @@ int vtkCocoaRenderWindow::SupportsOpenGL()
{
return 0;
}
NSOpenGLContext* context = (NSOpenGLContext*)this->GetContextId();
GLint currentScreen = [context currentVirtualScreen];
NSOpenGLPixelFormat* pixelFormat = (NSOpenGLPixelFormat*)this->GetPixelFormat();
GLint pfd = 0;
[pixelFormat getValues: &pfd forAttribute: NSOpenGLPFACompliant forVirtualScreen: currentScreen];
int supportsOpenGL = (pfd == 0) ? 0 : 1;
return supportsOpenGL;
return 1;
}
//----------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment