]> git.mxchange.org Git - flightgear.git/commit
Crashfix: move spatial, AI queries in map-widget
authorJames Turner <zakalawe@mac.com>
Tue, 14 Jan 2014 13:11:06 +0000 (13:11 +0000)
committerJames Turner <zakalawe@mac.com>
Tue, 14 Jan 2014 13:11:06 +0000 (13:11 +0000)
commit1b9394fc37c14a594b0d3e2d1354fad63354a521
treeb3e9abaef55b39d89eb7ef82f0bbd8918d2dc34f
parent976f3115a95b681aa466ffdb6af9f1fe8b2c394c
Crashfix: move spatial, AI queries in map-widget

In threaded OSG drawing, MapWidget::draw runs in the render
thread context, but touches lots of main thread state. Move most of the
work to an update() helper run on the main thread instead, so draw()
mostly makes pure GL calls.

(This is a fix for 3.0, the real solution is to migrate to a
Canvas-based map and GUI)
src/GUI/FGPUIDialog.cxx
src/GUI/MapWidget.cxx
src/GUI/MapWidget.hxx