1
0
Fork 0
forked from wry/wry

video: choose render device in the frontend

This commit is contained in:
Julian Orth 2022-11-13 14:00:59 +01:00
parent 049b86f4e2
commit 141997d9d6
2 changed files with 5 additions and 4 deletions

View file

@ -283,6 +283,11 @@ impl State {
if let Some(config) = self.config.get() {
config.devices_enumerated()
}
if self.render_ctx.get().is_none() {
if let Some(dev) = self.drm_devs.lock().values().next() {
dev.make_render_device();
}
}
}
pub fn set_render_ctx(&self, ctx: Option<&Rc<RenderContext>>) {