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:
Robert Osfield 2015-04-30 13:59:24 +00:00
parent 8962838e6a
commit eb5791e5e2

View File

@ -2274,8 +2274,7 @@ void GraphicsWindowWin32::setCursorImpl( MouseCursor mouseCursor )
_currentCursor = newCursor;
_traits->useCursor = (_currentCursor != NULL) && (_mouseCursor != NoCursor);
if (_mouseCursor != InheritCursor)
::SetCursor(_currentCursor);
PostMessage(_hwnd, WM_SETCURSOR, 0, 0);
}
}