From 051e2a6dc3b6db4b9bc42fb31f3079d1602cf29c Mon Sep 17 00:00:00 2001 From: curt Date: Tue, 17 Apr 2001 05:21:56 +0000 Subject: [PATCH] Tweaks so tile loading still works in non-threaded mode. --- src/Scenery/FGTileLoader.cxx | 4 ++++ src/Scenery/FGTileLoader.hxx | 4 +++- tests/Makefile.am | 6 +++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/Scenery/FGTileLoader.cxx b/src/Scenery/FGTileLoader.cxx index 6a787926f..17cc52fc3 100644 --- a/src/Scenery/FGTileLoader.cxx +++ b/src/Scenery/FGTileLoader.cxx @@ -29,6 +29,9 @@ #include "tileentry.hxx" #include "tilemgr.hxx" +extern ssgBranch *terrain; +extern ssgBranch *ground; + /** * */ @@ -87,6 +90,7 @@ FGTileLoader::add( FGTileEntry* tile ) tile_queue.push( tile ); #else tile->load( tile_path, true ); + tile->add_ssg_nodes( terrain, ground ); #endif // ENABLE_THREADS } diff --git a/src/Scenery/FGTileLoader.hxx b/src/Scenery/FGTileLoader.hxx index b5fb759c7..75b3a0c3d 100644 --- a/src/Scenery/FGTileLoader.hxx +++ b/src/Scenery/FGTileLoader.hxx @@ -77,11 +77,13 @@ private: private: +#ifdef ENABLE_THREADS /** * FIFO queue of tiles to load from data files. */ SGBlockingQueue< FGTileEntry* > tile_queue; - +#endif + /** * Base name of directory containing tile data file. */ diff --git a/tests/Makefile.am b/tests/Makefile.am index 8c7ab1281..af1db71cb 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,4 +1,5 @@ -bin_PROGRAMS = est-epsilon gl-info test-gethostname test-mktime test-up +bin_PROGRAMS = est-epsilon gl-info test-gethostname test-mktime test-text \ + test-up est_epsilon_SOURCES = est-epsilon.c est_epsilon_LDADD = $(base_LIBS) @@ -12,5 +13,8 @@ test_gethostname_LDADD = $(base_LIBS) test_mktime_SOURCES = test-mktime.cxx test_mktime_LDADD = $(base_LIBS) +test_text_SOURCES = test-text.cxx +test_text_LDADD = $(base_LIBS) + test_up_SOURCES = test-up.cxx test_up_LDADD = -lsgmath -lsgdebug -lplibsg $(base_LIBS) -- 2.39.5