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;
|
||||
} else {
|
||||
supported_rendering_device = RenderingDeviceCreationStatus::FAILURE;
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
#else // WINDOWS_ENABLED
|
||||
|
||||
RenderingContextDriver *rcd = nullptr;
|
||||
|
||||
|
@ -1391,6 +1390,7 @@ bool DisplayServer::is_rendering_device_supported() {
|
|||
rcd = nullptr;
|
||||
}
|
||||
|
||||
#endif // WINDOWS_ENABLED
|
||||
#endif // RD_ENABLED
|
||||
return false;
|
||||
}
|
||||
|
@ -1427,9 +1427,8 @@ bool DisplayServer::can_create_rendering_device() {
|
|||
return true;
|
||||
} else {
|
||||
created_rendering_device = RenderingDeviceCreationStatus::FAILURE;
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
#else // WINDOWS_ENABLED
|
||||
|
||||
RenderingContextDriver *rcd = nullptr;
|
||||
|
||||
|
@ -1474,6 +1473,7 @@ bool DisplayServer::can_create_rendering_device() {
|
|||
rcd = nullptr;
|
||||
}
|
||||
|
||||
#endif // WINDOWS_ENABLED
|
||||
#endif // RD_ENABLED
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue