[saco] Implement/match CUnkClass13::DeleteDeviceObjects()

This commit is contained in:
RD42 2024-08-26 23:25:20 +08:00
parent 94e10d91ee
commit de0bb23232
2 changed files with 11 additions and 2 deletions

View File

@ -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);

View File

@ -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();
}; };