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,
|
||||
UINT DataSize,
|
||||
UINT GetDataFlags) {
|
||||
if (pAsync->GetDataSize() != DataSize) {
|
||||
Logger::err("D3D11DeviceContext: GetData: Data size mismatch");
|
||||
if (pData != nullptr && pAsync->GetDataSize() != DataSize) {
|
||||
Logger::err(str::format("D3D11DeviceContext: GetData: Data size mismatch: ", pAsync->GetDataSize(), ",", DataSize));
|
||||
return E_INVALIDARG;
|
||||
}
|
||||
|
||||
|
@ -16,6 +16,8 @@ namespace dxvk {
|
||||
break;
|
||||
|
||||
default:
|
||||
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