Skip to content

Commit

Permalink
fix(gui): don't try looking up OpenAL drivers if there's no OpenAL li…
Browse files Browse the repository at this point in the history
…brary (#1084)
  • Loading branch information
rndtrash authored May 9, 2023
1 parent ba80948 commit 2d91a3f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Sources/Gui/StartupScreenHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,13 @@ namespace spades {
return std::string();
}
}));
}

// check openAL drivers
SPLog("Checking OpenAL available drivers");
openalDevices = audio::ALDevice::DeviceList();
for (const auto &d: openalDevices) {
SPLog("%s", d.c_str());
} else {
// check openAL drivers
SPLog("Checking OpenAL available drivers");
openalDevices = audio::ALDevice::DeviceList();
for (const auto &d: openalDevices) {
SPLog("%s", d.c_str());
}
}

// check GL capabilities
Expand Down

0 comments on commit 2d91a3f

Please sign in to comment.