Skip to content

Commit c136f0d

Browse files
authored
fix bug when opening visualizer on mac (#98)
1 parent b71d610 commit c136f0d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/candlewick/multibody/RobotScene.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,8 +596,10 @@ void RobotScene::renderPBRTriangleGeometry(CommandBuffer &command_buffer,
596596
if (transparent) {
597597
auto *pipeline =
598598
m_pipelines.get({PIPELINE_TRIANGLEMESH, true, RenderMode::FILL});
599-
if (!pipeline)
599+
if (!pipeline) {
600+
SDL_EndGPURenderPass(render_pass);
600601
return;
602+
}
601603
pipeline->bind(render_pass);
602604
for (entt::entity ent :
603605
view | m_registry.view<entt::entity>(entt::exclude<Opaque>)) {

0 commit comments

Comments
 (0)