Force host EGL on devices running with the nvidia driver
This commit is contained in:
parent
64466fb234
commit
06b3683ea4
1 changed files with 7 additions and 0 deletions
|
|
@ -109,6 +109,13 @@ anbox::cmds::Run::Run(const BusFactory &bus_factory)
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If we're running with the properietary nvidia driver we always
|
||||||
|
// use the host EGL driver as our translation doesn't work here.
|
||||||
|
if (fs::exists("/dev/nvidiactl")) {
|
||||||
|
INFO("Detected properietary nvidia driver; forcing use of the host EGL driver.");
|
||||||
|
gles_driver_ = graphics::GLRendererServer::Config::Driver::Host;
|
||||||
|
}
|
||||||
|
|
||||||
utils::ensure_paths({
|
utils::ensure_paths({
|
||||||
SystemConfiguration::instance().socket_dir(),
|
SystemConfiguration::instance().socket_dir(),
|
||||||
SystemConfiguration::instance().input_device_dir(),
|
SystemConfiguration::instance().input_device_dir(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue