Skip to content

Commit

Permalink
Update PlayerView.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
aliakseis committed Oct 14, 2023
1 parent 3d42e07 commit 1063c87
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Player/PlayerView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,23 @@ bool CPlayerView::InitializeD3D9()
TRACE("CreateDevice(HAL) failed with error 0x%x.\n", hr);
}

if (!m_pD3DD9)
{
hr = m_pD3D9->CreateDevice(D3DADAPTER_DEFAULT,
D3DDEVTYPE_HAL,
m_hWnd,
D3DCREATE_FPU_PRESERVE |
D3DCREATE_MULTITHREADED |
D3DCREATE_SOFTWARE_VERTEXPROCESSING,
&D3DPP,
&m_pD3DD9);

if (FAILED(hr))
{
TRACE("CreateDevice(HAL+SOFTWARE_VERTEXPROCESSING) failed with error 0x%x.\n", hr);
}
}

//
// Next try to create a software D3D9 device.
//
Expand Down

0 comments on commit 1063c87

Please sign in to comment.