File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -351,14 +351,17 @@ void MujocoEnv::offscreenRenderLoop()
351
351
offscreen_.request_pending .store (false );
352
352
return ;
353
353
}
354
- #else
354
+ #endif
355
+
356
+ #if RENDER_BACKEND == NO_BACKEND
355
357
ROS_ERROR (" No offscreen rendering backend available. Cannot run offscreen rendering" );
356
358
settings_.render_offscreen = false ;
357
359
settings_.visual_init_request = false ;
358
360
offscreen_.request_pending .store (false );
361
+ is_rendering_running_ = 0 ;
362
+ ROS_DEBUG (" Exiting offscreen render loop" );
359
363
return ;
360
- #endif
361
-
364
+ #else
362
365
is_rendering_running_ = 1 ;
363
366
ROS_DEBUG_NAMED (" offscreen_rendering" , " Creating offscreen rendering resources ..." );
364
367
mjv_defaultCamera (&offscreen_.cam );
@@ -414,6 +417,7 @@ void MujocoEnv::offscreenRenderLoop()
414
417
}
415
418
is_rendering_running_ = 0 ;
416
419
ROS_DEBUG (" Exiting offscreen render loop" );
420
+ #endif
417
421
}
418
422
419
423
} // namespace mujoco_ros
You can’t perform that action at this time.
0 commit comments