mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-11-29 01:24:11 +01:00
[d3d9] Fix CreateQuery error return code
This commit is contained in:
parent
0c117595b1
commit
931796d1c2
@ -97,7 +97,8 @@ namespace dxvk {
|
||||
};
|
||||
|
||||
if (FAILED(res)) {
|
||||
if (DevInfoStructSize != sizeof(D3DDEVINFO_VCACHE))
|
||||
// The struct size needs to be at least equal or larger
|
||||
if (DevInfoStructSize < sizeof(D3DDEVINFO_VCACHE))
|
||||
return D3DERR_INVALIDCALL;
|
||||
|
||||
memset(pDevInfoStruct, 0, sizeof(D3DDEVINFO_VCACHE));
|
||||
|
@ -3828,7 +3828,7 @@ namespace dxvk {
|
||||
}
|
||||
catch (const DxvkError & e) {
|
||||
Logger::err(e.message());
|
||||
return D3DERR_INVALIDCALL;
|
||||
return D3DERR_NOTAVAILABLE;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user