Skip to content

Commit b46313d

Browse files
committed
js: force clear color in TextureSource if we are not connected, to avoid artifacts
1 parent abd072d commit b46313d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/plugins/score-plugin-js/JS/Qml/TextureSource.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,11 @@ void TextureSourceRenderer::render(QRhiCommandBuffer* cb)
165165
r->render(*cb);
166166
}
167167
}
168+
else
169+
{
170+
cb->beginPass(this->renderTarget(), Qt::transparent, {});
171+
cb->endPass();
172+
}
168173
update();
169174
}
170175

0 commit comments

Comments
 (0)