Don't call start on tracking drivers;

Start is mainly used for setting up graphics-related stuff, since it
was created to perform setup after the window/graphics module is
initialized.  Since the display driver is the only one doing rendering,
it makes sense to only call start on the display driver.

...also fixes a bug where start is getting called twice.
This commit is contained in:
bjorn 2021-06-16 16:15:08 -06:00
parent 0582746137
commit 88000579ff
1 changed files with 0 additions and 3 deletions

View File

@ -115,9 +115,6 @@ static Device luax_optdevice(lua_State* L, int index) {
static int l_lovrHeadsetStart(lua_State* L) {
lovrHeadsetDisplayDriver->start();
FOREACH_TRACKING_DRIVER(driver) {
driver->start();
}
return 0;
}