mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-23 06:57:31 +08:00
[saco] Implement/match CUnkClass13::DeleteDeviceObjects()
This commit is contained in:
parent
94e10d91ee
commit
de0bb23232
@ -12,6 +12,14 @@ CUnkClass13::CUnkClass13(IDirect3DDevice9 *pD3DDevice)
|
|||||||
RestoreDeviceObjects();
|
RestoreDeviceObjects();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CUnkClass13::DeleteDeviceObjects()
|
||||||
|
{
|
||||||
|
SAFE_RELEASE(m_pD3DSurface);
|
||||||
|
SAFE_RELEASE(m_pD3DTexture);
|
||||||
|
SAFE_RELEASE(m_pD3DRenderToSurface);
|
||||||
|
SAFE_RELEASE(field_20);
|
||||||
|
}
|
||||||
|
|
||||||
void CUnkClass13::RestoreDeviceObjects()
|
void CUnkClass13::RestoreDeviceObjects()
|
||||||
{
|
{
|
||||||
m_pD3DDevice->GetDisplayMode(0, &m_DisplayMode);
|
m_pD3DDevice->GetDisplayMode(0, &m_DisplayMode);
|
||||||
|
@ -7,12 +7,13 @@ private:
|
|||||||
IDirect3DDevice9 *m_pD3DDevice;
|
IDirect3DDevice9 *m_pD3DDevice;
|
||||||
ID3DXRenderToSurface *m_pD3DRenderToSurface;
|
ID3DXRenderToSurface *m_pD3DRenderToSurface;
|
||||||
IDirect3DTexture9 *m_pD3DTexture;
|
IDirect3DTexture9 *m_pD3DTexture;
|
||||||
IDirect3DSurface9* m_pD3DSurface;
|
IDirect3DSurface9 *m_pD3DSurface;
|
||||||
D3DDISPLAYMODE m_DisplayMode;
|
D3DDISPLAYMODE m_DisplayMode;
|
||||||
int field_20;
|
IDirect3DTexture9 *field_20;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CUnkClass13(IDirect3DDevice9 *pD3DDevice);
|
CUnkClass13(IDirect3DDevice9 *pD3DDevice);
|
||||||
|
|
||||||
|
void DeleteDeviceObjects();
|
||||||
void RestoreDeviceObjects();
|
void RestoreDeviceObjects();
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user