mirror of
https://github.com/xenia-project/xenia.git
synced 2026-04-20 22:13:40 +00:00
Merge pull request #1069 from parkerlamb/context_fix
UI/Vulkan: Fixed graphics context recreation on HiDPI systems
This commit is contained in:
commit
5477b1e40f
1 changed files with 2 additions and 2 deletions
|
|
@ -150,8 +150,8 @@ void VulkanContext::BeginSwap() {
|
|||
// If it has been, we'll need to reinitialize the swap chain before we
|
||||
// start touching it.
|
||||
if (target_window_) {
|
||||
if (target_window_->width() != swap_chain_->surface_width() ||
|
||||
target_window_->height() != swap_chain_->surface_height()) {
|
||||
if (target_window_->scaled_width() != swap_chain_->surface_width() ||
|
||||
target_window_->scaled_height() != swap_chain_->surface_height()) {
|
||||
// Resized!
|
||||
swap_chain_->Reinitialize();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue