Removed unused size checking on GetPhysicalDevices

The method is only being called once so this doesn't make sense. It was some left over of me trying to get this done some other way.
This commit is contained in:
SamuelFontes 2024-08-13 16:04:49 -03:00
parent 59dcb9263d
commit 7f56183c54

View file

@ -161,7 +161,6 @@ void MainWindow::LoadGameLists() {
}
void MainWindow::GetPhysicalDevices() {
if (m_physical_devices.size() == 0) {
Vulkan::Instance instance(false, false);
auto physical_devices = instance.GetPhysicalDevices();
for (const vk::PhysicalDevice physical_device : physical_devices) {
@ -173,7 +172,6 @@ void MainWindow::GetPhysicalDevices() {
m_physical_devices.push_back(name);
}
}
}
void MainWindow::CreateConnects() {
connect(this, &MainWindow::WindowResized, this, &MainWindow::HandleResize);