mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-01 07:24:12 +01:00
[d3d11] Fixed query-related logging
Log messages in GetData did not take into account that writing back data is actually optional.
This commit is contained in:
parent
ca53eaf878
commit
4aaa351225
@ -164,8 +164,8 @@ namespace dxvk {
|
|||||||
void* pData,
|
void* pData,
|
||||||
UINT DataSize,
|
UINT DataSize,
|
||||||
UINT GetDataFlags) {
|
UINT GetDataFlags) {
|
||||||
if (pAsync->GetDataSize() != DataSize) {
|
if (pData != nullptr && pAsync->GetDataSize() != DataSize) {
|
||||||
Logger::err("D3D11DeviceContext: GetData: Data size mismatch");
|
Logger::err(str::format("D3D11DeviceContext: GetData: Data size mismatch: ", pAsync->GetDataSize(), ",", DataSize));
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,7 +16,9 @@ namespace dxvk {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
Logger::warn(str::format("D3D11Query: Unsupported query type ", desc.Query));
|
static bool errorShown = false;
|
||||||
|
if (!std::exchange(errorShown, true))
|
||||||
|
Logger::warn(str::format("D3D11Query: Unsupported query type ", desc.Query));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user