Commit c5049851 authored by Clinton Stimpson's avatar Clinton Stimpson

COMP: Fix compile warnings.

parent 1348f769
......@@ -133,7 +133,7 @@ void vtkGenericOpenGLRenderWindow::MakeCurrent()
bool vtkGenericOpenGLRenderWindow::IsCurrent()
{
int current = 0;
bool current = 0;
this->InvokeEvent(vtkCommand::WindowIsCurrentEvent, &current);
return current;
}
......
......@@ -19,7 +19,7 @@
// using one's own OpenGL context and drawable.
// To be effective, one must register an observer for WindowMakeCurrentEvent,
// WindowIsCurrentEvent and WindowFrameEvent. When this class sends a WindowIsCurrentEvent,
// the call data is an int* which one can use to return whether the context is current.
// the call data is an bool* which one can use to return whether the context is current.
#ifndef vtkGenericOpenGLRenderWindow_hpp
#define vtkGenericOpenGLRenderWindow_hpp
......@@ -53,7 +53,7 @@ public:
void MakeCurrent();
//! Returns if the context is current. It is the class user's
//! responsibility to watch for WindowIsCurrentEvent and set the integer flag
//! responsibility to watch for WindowIsCurrentEvent and set the bool* flag
//! passed through the call data parameter.
bool IsCurrent();
......
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