From 009321017334bc5e93c57ef4b48f7e17644cae89 Mon Sep 17 00:00:00 2001 From: Haroon Qureshi Date: Mon, 8 Jun 2026 01:44:58 -0700 Subject: [PATCH] Remove hard-coded render target formats. The formats are defined in the config. PiperOrigin-RevId: 928412818 Change-Id: I20ea72214d8e1484723793d8a3f89cdcb4b617b1 --- src/experimental/filament/filament/render_target.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/experimental/filament/filament/render_target.cc b/src/experimental/filament/filament/render_target.cc index ed9b7fe4..5464fe56 100644 --- a/src/experimental/filament/filament/render_target.cc +++ b/src/experimental/filament/filament/render_target.cc @@ -64,7 +64,6 @@ void RenderTarget::Prepare(int width, int height) { color_config.sampler_type = mjTEXTURE_2D; color_config.format = config_.color_format; color_config.color_space = mjCOLORSPACE_LINEAR; - color_config.format = mjPIXEL_FORMAT_RGB8; color_flags.color_attachment = true; color_texture_ = std::make_unique(engine_, color_config, color_flags); @@ -76,7 +75,6 @@ void RenderTarget::Prepare(int width, int height) { depth_config.sampler_type = mjTEXTURE_2D; depth_config.format = config_.depth_format; depth_config.color_space = mjCOLORSPACE_LINEAR; - depth_config.format = mjPIXEL_FORMAT_DEPTH32F; depth_flags.depth_attachment = true; depth_texture_ = std::make_unique(engine_, depth_config, depth_flags);