mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 22:00:13 +01:00
st/nine: Fix crash NineDevice9_CreateAdditionalSwapChain
When no window is specified, we should revert to the focus window. This deserves more tests however (what if the device swapchain is already using the focus window ?) Fixes crash for FFXIV Signed-off-by: Axel Davy <axel.davy@ens.fr> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
This commit is contained in:
parent
996f76bd8a
commit
cbbd3c65cc
1 changed files with 4 additions and 0 deletions
|
|
@ -711,6 +711,10 @@ NineDevice9_CreateAdditionalSwapChain( struct NineDevice9 *This,
|
|||
|
||||
user_assert(pPresentationParameters, D3DERR_INVALIDCALL);
|
||||
|
||||
/* TODO: this deserves more tests */
|
||||
if (!pPresentationParameters->hDeviceWindow)
|
||||
pPresentationParameters->hDeviceWindow = This->params.hFocusWindow;
|
||||
|
||||
hr = ID3DPresentGroup_CreateAdditionalPresent(This->present, pPresentationParameters, &present);
|
||||
|
||||
if (FAILED(hr))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue