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:
Robert Osfield
2005-11-09 13:26:11 +00:00
parent 6c3c5554b6
commit e555f0332b

View File

@@ -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;