mirror of https://github.com/PCSX2/pcsx2.git
GSdx: Found three other instances of CComPtr that could be removed. (DX9 only)
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1330 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
c668c7c351
commit
3f97423a30
|
@ -86,7 +86,7 @@ int GSTexture9::GetFormat() const
|
||||||
|
|
||||||
bool GSTexture9::Update(const GSVector4i& r, const void* data, int pitch)
|
bool GSTexture9::Update(const GSVector4i& r, const void* data, int pitch)
|
||||||
{
|
{
|
||||||
if(CComPtr<IDirect3DSurface9> surface = *this)
|
if(IDirect3DSurface9* surface = *this)
|
||||||
{
|
{
|
||||||
D3DLOCKED_RECT lr;
|
D3DLOCKED_RECT lr;
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ bool GSTexture9::Map(uint8** bits, int& pitch, const GSVector4i* r)
|
||||||
{
|
{
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|
||||||
if(CComPtr<IDirect3DSurface9> surface = *this)
|
if(IDirect3DSurface9* surface = *this)
|
||||||
{
|
{
|
||||||
D3DLOCKED_RECT lr;
|
D3DLOCKED_RECT lr;
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ bool GSTexture9::Map(uint8** bits, int& pitch, const GSVector4i* r)
|
||||||
|
|
||||||
void GSTexture9::Unmap()
|
void GSTexture9::Unmap()
|
||||||
{
|
{
|
||||||
if(CComPtr<IDirect3DSurface9> surface = *this)
|
if(IDirect3DSurface9* surface = *this)
|
||||||
{
|
{
|
||||||
surface->UnlockRect();
|
surface->UnlockRect();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue