mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-02 01:24:11 +01:00
[dxgi] Fix QueryVideoMemoryInfo return values
Fixes a wine test failure.
This commit is contained in:
parent
1e00f8046c
commit
2cb9d34f8f
@ -280,11 +280,11 @@ namespace dxvk {
|
||||
DXGI_MEMORY_SEGMENT_GROUP MemorySegmentGroup,
|
||||
DXGI_QUERY_VIDEO_MEMORY_INFO* pVideoMemoryInfo) {
|
||||
if (NodeIndex > 0 || !pVideoMemoryInfo)
|
||||
return DXGI_ERROR_INVALID_CALL;
|
||||
return E_INVALIDARG;
|
||||
|
||||
if (MemorySegmentGroup != DXGI_MEMORY_SEGMENT_GROUP_LOCAL
|
||||
&& MemorySegmentGroup != DXGI_MEMORY_SEGMENT_GROUP_NON_LOCAL)
|
||||
return DXGI_ERROR_INVALID_CALL;
|
||||
return E_INVALIDARG;
|
||||
|
||||
DxvkAdapterMemoryInfo memInfo = m_adapter->getMemoryHeapInfo();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user