mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
[Windows] Fix unreachable code in DisplayServer
This commit is contained in:
parent
cc7a951140
commit
8ea725a181
1 changed files with 4 additions and 4 deletions
|
@ -1344,9 +1344,8 @@ bool DisplayServer::is_rendering_device_supported() {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
supported_rendering_device = RenderingDeviceCreationStatus::FAILURE;
|
supported_rendering_device = RenderingDeviceCreationStatus::FAILURE;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
#endif
|
#else // WINDOWS_ENABLED
|
||||||
|
|
||||||
RenderingContextDriver *rcd = nullptr;
|
RenderingContextDriver *rcd = nullptr;
|
||||||
|
|
||||||
|
@ -1391,6 +1390,7 @@ bool DisplayServer::is_rendering_device_supported() {
|
||||||
rcd = nullptr;
|
rcd = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // WINDOWS_ENABLED
|
||||||
#endif // RD_ENABLED
|
#endif // RD_ENABLED
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -1427,9 +1427,8 @@ bool DisplayServer::can_create_rendering_device() {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
created_rendering_device = RenderingDeviceCreationStatus::FAILURE;
|
created_rendering_device = RenderingDeviceCreationStatus::FAILURE;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
#endif
|
#else // WINDOWS_ENABLED
|
||||||
|
|
||||||
RenderingContextDriver *rcd = nullptr;
|
RenderingContextDriver *rcd = nullptr;
|
||||||
|
|
||||||
|
@ -1474,6 +1473,7 @@ bool DisplayServer::can_create_rendering_device() {
|
||||||
rcd = nullptr;
|
rcd = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // WINDOWS_ENABLED
|
||||||
#endif // RD_ENABLED
|
#endif // RD_ENABLED
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue