mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 19:54:19 +01:00
[d3d9] Validate D3DCREATE_PUREDEVICE usage
This commit is contained in:
parent
a276e13821
commit
e9fc071d95
@ -354,6 +354,12 @@ namespace dxvk {
|
||||
|| pPresentationParameters == nullptr)
|
||||
return D3DERR_INVALIDCALL;
|
||||
|
||||
// creating a device with D3DCREATE_PUREDEVICE only works in conjunction
|
||||
// with D3DCREATE_HARDWARE_VERTEXPROCESSING on native drivers
|
||||
if (BehaviorFlags & D3DCREATE_PUREDEVICE &&
|
||||
!(BehaviorFlags & D3DCREATE_HARDWARE_VERTEXPROCESSING))
|
||||
return D3DERR_INVALIDCALL;
|
||||
|
||||
auto* adapter = GetAdapter(Adapter);
|
||||
|
||||
if (adapter == nullptr)
|
||||
|
Loading…
x
Reference in New Issue
Block a user