Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
VTK
VTK
Commits
3837ba15
Commit
3837ba15
authored
May 12, 2010
by
François Bertel
Committed by
David Partyka
May 13, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG:result of IsDirect() was based on fullscreen mode flag in vtkCocoaRenderWindow
parent
2549b294
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
Rendering/vtkCocoaRenderWindow.mm
Rendering/vtkCocoaRenderWindow.mm
+1
-10
No files found.
Rendering/vtkCocoaRenderWindow.mm
View file @
3837ba15
...
...
@@ -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
;
}
//----------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment