File tree Expand file tree Collapse file tree
src/Speed/Indep/Src/World Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -937,16 +937,17 @@ bool TrackStreamer::WillUnloadBlock(TrackStreamingSection *section) {
937937}
938938
939939void TrackStreamer::UnloadSection (TrackStreamingSection *section) {
940+ ProfileNode profile_node (section->SectionName , 0 );
940941 if (section->Status == TrackStreamingSection::ACTIVATED) {
941942 UnactivateSection (section);
942943 }
943944
944945 if (section->Status == TrackStreamingSection::LOADED) {
945946 if (WillUnloadBlock (section)) {
946- WaitForFrameBufferSwapDisabled = 1 ;
947+ DisableWaitForFrameBufferSwap () ;
947948 eWaitUntilRenderingDone ();
948- WaitForFrameBufferSwapDisabled = 0 ;
949- LastWaitUntilRenderingDoneFrameCount = eFrameCounter ;
949+ EnableWaitForFrameBufferSwap () ;
950+ LastWaitUntilRenderingDoneFrameCount = eGetFrameCounter () ;
950951 }
951952
952953 section->UnactivatedFrameCount = 0 ;
You can’t perform that action at this time.
0 commit comments