|
From: <fli...@li...> - 2026-07-22 13:11:51
|
unknown user pushed a commit to branch next
in repository flightgear.
The following commit(s) were added to refs/heads/next by this push:
new 8ef0a0b9d Fix build with asserts enabled
8ef0a0b9d is described below
SF URL: http://sourceforge.net/p/flightgear/flightgear/ci/8ef0a0b9d5522d4014adc7090cdf6e589c2d49eb/
Commit: 8ef0a0b9d5522d4014adc7090cdf6e589c2d49eb
Author: James Turner
Committer: James Turner
AuthorDate: Tue Jul 21 09:47:51 2026 +0100
Fix build with asserts enabled
---
src/Environment/fgclouds.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/Environment/fgclouds.cxx b/src/Environment/fgclouds.cxx
index c18058902..e7247d40d 100644
--- a/src/Environment/fgclouds.cxx
+++ b/src/Environment/fgclouds.cxx
@@ -533,7 +533,7 @@ bool FGClouds::repositionCloud(int index, float lon, float lat, float alt, float
// the main thread (reads FGLight subsystem state and _cloudPosMatrix).
osg::Vec3f FGClouds::computeSunDirVoxel() const
{
- assert(SGThreads::isMainThread());
+ assert(SGThread::isMainThread());
auto l = globals->get_subsystem<FGLight>();
// sun_vec() points from scene toward sun in world (ECEF) space
@@ -552,7 +552,7 @@ FGClouds::RebuildSnapshot FGClouds::captureSnapshot()
{
RebuildSnapshot snap;
- assert(SGThreads::isMainThread());
+ assert(SGThread::isMainThread());
// Read config (always main-thread safe)
auto cloudsProp = globals->get_props()->getNode("/sim/rendering/hdr/clouds/");
@@ -896,7 +896,7 @@ void FGClouds::commitResult(RebuildResult result)
FGClouds::ShadeSnapshot FGClouds::captureShadeSnapshot()
{
- assert(SGThreads::isMainThread());
+ assert(SGThread::isMainThread());
ShadeSnapshot snap;
snap.width = _detailedVoxelData->s();
|