Remove redundant call to GenerateMipMaps.
The Create?Textures will generate the mipmaps themselves if needed. PiperOrigin-RevId: 830868294 Change-Id: I295e0dac12bc7c31a98242256721f46467f883d6
This commit is contained in:
committed by
Copybara-Service
parent
4a5a36f3fc
commit
1fbea85ef0
@@ -468,10 +468,6 @@ filament::Texture* CreateTexture(filament::Engine* engine, const mjModel* model,
|
|||||||
? Create2dTexture(engine, width, height, num_channels, data, is_srgb)
|
? Create2dTexture(engine, width, height, num_channels, data, is_srgb)
|
||||||
: CreateCubeTexture(engine, width, height, num_channels, data,
|
: CreateCubeTexture(engine, width, height, num_channels, data,
|
||||||
is_srgb);
|
is_srgb);
|
||||||
// TODO: Revisit this to make it this work in WebGL
|
|
||||||
#ifndef __EMSCRIPTEN__
|
|
||||||
texture->generateMipmaps(*engine);
|
|
||||||
#endif
|
|
||||||
return texture;
|
return texture;
|
||||||
}
|
}
|
||||||
} // namespace mujoco
|
} // namespace mujoco
|
||||||
|
|||||||
Reference in New Issue
Block a user