diff options
Diffstat (limited to 'src/SubPic/DX9SubPic.cpp')
-rw-r--r-- | src/SubPic/DX9SubPic.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SubPic/DX9SubPic.cpp b/src/SubPic/DX9SubPic.cpp index 596dcad23..8c9d5e994 100644 --- a/src/SubPic/DX9SubPic.cpp +++ b/src/SubPic/DX9SubPic.cpp @@ -65,7 +65,7 @@ CDX9SubPic::~CDX9SubPic() STDMETHODIMP_(void*) CDX9SubPic::GetObject()
{
CComPtr<IDirect3DTexture9> pTexture;
- if (SUCCEEDED(m_pSurface->GetContainer(IID_IDirect3DTexture9, (void**)&pTexture))) {
+ if (SUCCEEDED(m_pSurface->GetContainer(IID_PPV_ARGS(&pTexture)))) {
return (void*)(IDirect3DTexture9*)pTexture;
}
|