mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-11-30 22:24:15 +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,7 +16,9 @@ namespace dxvk {
|
||||
break;
|
||||
|
||||
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