Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
VTK
VTK
Commits
acf25de6
Commit
acf25de6
authored
Feb 13, 2003
by
Ken Martin
Browse files
amother make current fix
parent
f759b1f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Rendering/vtkWin32OpenGLRenderWindow.cxx
View file @
acf25de6
...
...
@@ -38,7 +38,7 @@ PURPOSE. See the above copyright notice for more information.
#include
<GL/gl.h>
#endif
vtkCxxRevisionMacro
(
vtkWin32OpenGLRenderWindow
,
"1.11
1
"
);
vtkCxxRevisionMacro
(
vtkWin32OpenGLRenderWindow
,
"1.11
2
"
);
vtkStandardNewMacro
(
vtkWin32OpenGLRenderWindow
);
#define VTK_MAX_LIGHTS 8
...
...
@@ -199,9 +199,10 @@ int vtkWin32OpenGLRenderWindow::GetEventPending()
void
vtkWin32OpenGLRenderWindow
::
MakeCurrent
()
{
// Try to avoid doing anything (for performance).
if
(
this
->
ContextId
!=
wglGetCurrentContext
())
{
if
(
this
->
IsPickingOn
)
HGLRC
current
=
wglGetCurrentContext
();
if
(
this
->
ContextId
!=
current
)
{
if
(
this
->
IsPicking
&&
current
)
{
vtkErrorMacro
(
"Attempting to call MakeCurrent for a different window"
" than the one doing the picking, this can causes crashes"
...
...
Write
Preview
Supports
Markdown
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