1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Merge pull request #64710 from MinusKube/window-size-crash

Prevent windows from having a size greater than device limit
This commit is contained in:
Clay John
2022-10-27 10:02:44 -07:00
committed by GitHub
17 changed files with 69 additions and 0 deletions

View File

@@ -331,6 +331,14 @@ bool RenderingServerDefault::is_low_end() const {
return RendererCompositor::is_low_end();
}
Size2i RenderingServerDefault::get_maximum_viewport_size() const {
if (RSG::utilities) {
return RSG::utilities->get_maximum_viewport_size();
} else {
return Size2i();
}
}
void RenderingServerDefault::_thread_exit() {
exit.set();
}