1
0
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:
Philip Rebohle 2018-01-29 17:04:07 +01:00
parent ca53eaf878
commit 4aaa351225
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 5 additions and 3 deletions

View File

@ -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;
}

View File

@ -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));
}
}