From 31375c9cf858aa4fa1fb28095b90914d0344d39e Mon Sep 17 00:00:00 2001 From: Jules Blok Date: Thu, 26 Nov 2015 00:00:56 +0100 Subject: [PATCH] QueryHelper: Implement missing ReleaseQuery(). --- src/Layers/xrRender/QueryHelper.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/Layers/xrRender/QueryHelper.h b/src/Layers/xrRender/QueryHelper.h index c4c700ecaf0..caead944400 100644 --- a/src/Layers/xrRender/QueryHelper.h +++ b/src/Layers/xrRender/QueryHelper.h @@ -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) @@ -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) @@ -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 \ No newline at end of file