Added a test of isRealized to requestWrapPointer to prevent a deadlock condition occur when a wap pointer is done before a window is realized.
This commit is contained in:
@@ -1022,7 +1022,7 @@ void Viewer::requestContinuousUpdate(bool)
|
||||
|
||||
void Viewer::requestWarpPointer(float x,float y)
|
||||
{
|
||||
if (_kbmcb.valid())
|
||||
if (_kbmcb.valid() && isRealized())
|
||||
{
|
||||
osg::notify(osg::INFO) << "requestWarpPointer x= "<<x<<" y="<<y<<std::endl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user