mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 00:06:44 -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";
|
||||
return false;
|
||||
}
|
||||
if (new_context->_swap_chain == _swap_chain) {
|
||||
_swap_chain = nullptr;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user