mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +09:00
follow-up D3D9 initialization fix by XPRTM@MSFN, stop creating pure device.
This commit is contained in:
parent
15458344bf
commit
51bb5d5c81
1 changed files with 3 additions and 9 deletions
|
|
@ -328,15 +328,9 @@ DeviceManagerD3D9::Initialize()
|
|||
// XPRTM Edit:
|
||||
// check if hardware T&L is available
|
||||
if (pD3D9DeviceCaps.DevCaps & D3DDEVCAPS_HWTRANSFORMANDLIGHT) {
|
||||
if (pD3D9DeviceCaps.DevCaps & D3DDEVCAPS_PUREDEVICE) {
|
||||
behaviorFlags |= D3DCREATE_HARDWARE_VERTEXPROCESSING |
|
||||
D3DCREATE_MULTITHREADED |
|
||||
D3DCREATE_PUREDEVICE | D3DCREATE_FPU_PRESERVE;
|
||||
} else {
|
||||
behaviorFlags |= D3DCREATE_HARDWARE_VERTEXPROCESSING |
|
||||
D3DCREATE_MULTITHREADED |
|
||||
D3DCREATE_FPU_PRESERVE;
|
||||
}
|
||||
behaviorFlags |= D3DCREATE_HARDWARE_VERTEXPROCESSING |
|
||||
D3DCREATE_MULTITHREADED |
|
||||
D3DCREATE_FPU_PRESERVE;
|
||||
} else {
|
||||
behaviorFlags |= D3DCREATE_SOFTWARE_VERTEXPROCESSING |
|
||||
D3DCREATE_MULTITHREADED |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue