1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-05 01:24:14 +01:00

[d3d9] Remove uninitialized device present params

This commit is contained in:
Robin Kertels 2023-06-13 22:10:05 +02:00 committed by Joshie
parent b8d36eeacc
commit d1707026f9
2 changed files with 3 additions and 2 deletions

View File

@ -318,7 +318,9 @@ namespace dxvk {
uint32_t inputHeight = cursorTex->Desc()->Height; uint32_t inputHeight = cursorTex->Desc()->Height;
// Always use a hardware cursor when windowed. // Always use a hardware cursor when windowed.
bool hwCursor = m_presentParams.Windowed; D3DPRESENT_PARAMETERS params;
m_implicitSwapchain->GetPresentParameters(&params);
bool hwCursor = params.Windowed;
// Always use a hardware cursor w/h <= 32 px // Always use a hardware cursor w/h <= 32 px
hwCursor |= inputWidth <= HardwareCursorWidth hwCursor |= inputWidth <= HardwareCursorWidth

View File

@ -1200,7 +1200,6 @@ namespace dxvk {
D3DDEVTYPE m_deviceType; D3DDEVTYPE m_deviceType;
HWND m_window; HWND m_window;
WORD m_behaviorFlags; WORD m_behaviorFlags;
D3DPRESENT_PARAMETERS m_presentParams;
D3D9Adapter* m_adapter; D3D9Adapter* m_adapter;
Rc<DxvkDevice> m_dxvkDevice; Rc<DxvkDevice> m_dxvkDevice;