Remove unused flag.
PiperOrigin-RevId: 883113888 Change-Id: I098669f8a873694903159649567bc2f68397f955
This commit is contained in:
committed by
Copybara-Service
parent
910fbbb111
commit
b18657acde
@@ -118,9 +118,7 @@ FilamentContext::FilamentContext(const mjrFilamentConfig* config,
|
||||
}
|
||||
|
||||
scene_view_ = std::make_unique<SceneView>(engine_, object_manager_.get());
|
||||
if (config_.enable_gui) {
|
||||
gui_view_ = std::make_unique<GuiView>(engine_, object_manager_.get());
|
||||
}
|
||||
gui_view_ = std::make_unique<GuiView>(engine_, object_manager_.get());
|
||||
}
|
||||
|
||||
FilamentContext::~FilamentContext() {
|
||||
|
||||
@@ -41,9 +41,6 @@ struct mjrFilamentConfig {
|
||||
|
||||
// The backend graphics API to use.
|
||||
int graphics_api;
|
||||
|
||||
// Whether or not to enable GUI rendering.
|
||||
bool enable_gui;
|
||||
};
|
||||
|
||||
void mjrf_defaultFilamentConfig(mjrFilamentConfig* config);
|
||||
|
||||
@@ -88,7 +88,6 @@ void Renderer::Init(const mjModel* model) {
|
||||
mjrFilamentConfig render_config;
|
||||
mjrf_defaultFilamentConfig(&render_config);
|
||||
render_config.native_window = native_window_;
|
||||
render_config.enable_gui = true;
|
||||
render_config.graphics_api =
|
||||
IsOpenGl(gfx_) || IsWebGl(gfx_) ? mjGFX_OPENGL : mjGFX_VULKAN;
|
||||
mjrf_makeFilamentContext(model, &render_context_, &render_config);
|
||||
|
||||
Reference in New Issue
Block a user