Skip to content

Commit 2d91a3f

Browse files
authored
fix(gui): don't try looking up OpenAL drivers if there's no OpenAL library (#1084)
1 parent ba80948 commit 2d91a3f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Sources/Gui/StartupScreenHelper.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,13 @@ namespace spades {
164164
return std::string();
165165
}
166166
}));
167-
}
168-
169-
// check openAL drivers
170-
SPLog("Checking OpenAL available drivers");
171-
openalDevices = audio::ALDevice::DeviceList();
172-
for (const auto &d: openalDevices) {
173-
SPLog("%s", d.c_str());
167+
} else {
168+
// check openAL drivers
169+
SPLog("Checking OpenAL available drivers");
170+
openalDevices = audio::ALDevice::DeviceList();
171+
for (const auto &d: openalDevices) {
172+
SPLog("%s", d.c_str());
173+
}
174174
}
175175

176176
// check GL capabilities

0 commit comments

Comments
 (0)