mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 00:32:57 -04:00
dxgsg9: Fix crash when resizing window in multi-window setup
Fixes #1167
This commit is contained in:
parent
14e95eec72
commit
3dc09c38d3
@ -4767,6 +4767,9 @@ release_swap_chain(DXScreenData *new_context) {
|
|||||||
wdxdisplay9_cat.debug() << "Swapchain release failed:" << D3DERRORSTRING(hr) << "\n";
|
wdxdisplay9_cat.debug() << "Swapchain release failed:" << D3DERRORSTRING(hr) << "\n";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (new_context->_swap_chain == _swap_chain) {
|
||||||
|
_swap_chain = nullptr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user