Disable window resizing on load as it breaks on some platforms.
PiperOrigin-RevId: 914774489 Change-Id: I9aea71b386de93f4d2fc3da5310dd7a3018c8c1c
This commit is contained in:
committed by
Copybara-Service
parent
35cdc779e6
commit
69a1087e9e
@@ -105,7 +105,8 @@ void App::SwitchGraphicsMode(int width, int height,
|
|||||||
renderer_ = std::make_unique<platform::Renderer>(
|
renderer_ = std::make_unique<platform::Renderer>(
|
||||||
window_->GetNativeWindowHandle(), gfx_mode_);
|
window_->GetNativeWindowHandle(), gfx_mode_);
|
||||||
|
|
||||||
LoadSettings();
|
// TODO: Figure out why this breaks on some platforms.
|
||||||
|
// LoadSettings();
|
||||||
if (ui_.window_width > 0 && ui_.window_height > 0) {
|
if (ui_.window_width > 0 && ui_.window_height > 0) {
|
||||||
window_->Resize(ui_.window_width, ui_.window_height);
|
window_->Resize(ui_.window_width, ui_.window_height);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user