Skip to content

Commit 31375c9

Browse files
committed
QueryHelper: Implement missing ReleaseQuery().
1 parent d0b9aff commit 31375c9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/Layers/xrRender/QueryHelper.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ IC HRESULT EndQuery( ID3DQuery *pQuery)
8787
return S_OK;
8888
}
8989

90+
IC HRESULT ReleaseQuery(ID3DQuery* pQuery)
91+
{
92+
_RELEASE(pQuery);
93+
return S_OK;
94+
}
95+
9096
#elif defined(USE_DX10)
9197

9298
IC HRESULT CreateQuery ( ID3DQuery **ppQuery)
@@ -115,6 +121,12 @@ IC HRESULT EndQuery( ID3DQuery *pQuery)
115121
return S_OK;
116122
}
117123

124+
IC HRESULT ReleaseQuery(ID3DQuery* pQuery)
125+
{
126+
_RELEASE(pQuery);
127+
return S_OK;
128+
}
129+
118130
#else // USE_DX10
119131

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

152+
IC HRESULT ReleaseQuery(ID3DQuery* pQuery)
153+
{
154+
_RELEASE(pQuery);
155+
return S_OK;
156+
}
157+
140158
#endif // USE_DX10
141159

142160
#endif // QueryHelper_included

0 commit comments

Comments
 (0)