Skip to content

Commit

Permalink
QueryHelper: Implement missing ReleaseQuery().
Browse files Browse the repository at this point in the history
  • Loading branch information
CrossVR committed Nov 25, 2015
1 parent d0b9aff commit 31375c9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/Layers/xrRender/QueryHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ IC HRESULT EndQuery( ID3DQuery *pQuery)
return S_OK;
}

IC HRESULT ReleaseQuery(ID3DQuery* pQuery)
{
_RELEASE(pQuery);
return S_OK;
}

#elif defined(USE_DX10)

IC HRESULT CreateQuery ( ID3DQuery **ppQuery)
Expand Down Expand Up @@ -115,6 +121,12 @@ IC HRESULT EndQuery( ID3DQuery *pQuery)
return S_OK;
}

IC HRESULT ReleaseQuery(ID3DQuery* pQuery)
{
_RELEASE(pQuery);
return S_OK;
}

#else // USE_DX10

IC HRESULT CreateQuery ( ID3DQuery **ppQuery)
Expand All @@ -137,6 +149,12 @@ IC HRESULT EndQuery( ID3DQuery *pQuery)
return pQuery->Issue( D3DISSUE_END);
}

IC HRESULT ReleaseQuery(ID3DQuery* pQuery)
{
_RELEASE(pQuery);
return S_OK;
}

#endif // USE_DX10

#endif // QueryHelper_included

0 comments on commit 31375c9

Please sign in to comment.