Fix typo in window size check.
Corrected the comparison from `max_window_width != window_height_` to `max_window_height != window_height_` when checking if the window dimensions have changed. PiperOrigin-RevId: 929825452 Change-Id: I4ae46502495e16f86c19d4efabe8c048d708789b
This commit is contained in:
committed by
Copybara-Service
parent
118baada7c
commit
711aa9fcd8
@@ -221,7 +221,7 @@ void FilamentContext::ValidateSwapChains(
|
||||
|
||||
if (max_window_width && max_window_height) {
|
||||
if (max_window_width != window_width_ ||
|
||||
max_window_width != window_height_) {
|
||||
max_window_height != window_height_) {
|
||||
engine_->destroy(window_swap_chain_);
|
||||
window_width_ = max_window_width;
|
||||
window_height_ = max_window_height;
|
||||
|
||||
Reference in New Issue
Block a user