From Dmitriy Ogalcev, fix for crash when calling setCursor from a non GUI thread
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14861 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
parent
8962838e6a
commit
eb5791e5e2
@ -2274,8 +2274,7 @@ void GraphicsWindowWin32::setCursorImpl( MouseCursor mouseCursor )
|
|||||||
_currentCursor = newCursor;
|
_currentCursor = newCursor;
|
||||||
_traits->useCursor = (_currentCursor != NULL) && (_mouseCursor != NoCursor);
|
_traits->useCursor = (_currentCursor != NULL) && (_mouseCursor != NoCursor);
|
||||||
|
|
||||||
if (_mouseCursor != InheritCursor)
|
PostMessage(_hwnd, WM_SETCURSOR, 0, 0);
|
||||||
::SetCursor(_currentCursor);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user