1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 19:24:12 +01:00

[d3d11] Fixed crash with timestamp disjoint queries

This commit is contained in:
Philip Rebohle 2018-02-18 23:39:55 +01:00
parent 18c723fe8b
commit 675a629ae5

View File

@ -169,7 +169,8 @@ namespace dxvk {
} else {
DxvkQueryData queryData = {};
if (m_query->getData(queryData) != DxvkQueryStatus::Available)
if (m_query != nullptr
&& m_query->getData(queryData) != DxvkQueryStatus::Available)
return S_FALSE;
if (pData == nullptr)
@ -189,6 +190,7 @@ namespace dxvk {
return S_OK;
case D3D11_QUERY_TIMESTAMP_DISJOINT: {
// FIXME return correct frequency
auto data = static_cast<D3D11_QUERY_DATA_TIMESTAMP_DISJOINT*>(pData);
data->Frequency = 1000;
data->Disjoint = FALSE;