mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[saco] Implement/match CUnkClass14::DeleteDeviceObjects()
This commit is contained in:
parent
d6b207ac3c
commit
258392acf5
@ -10,6 +10,12 @@ CUnkClass14::CUnkClass14(IDirect3DDevice9 *pD3DDevice)
|
|||||||
RestoreDeviceObjects();
|
RestoreDeviceObjects();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CUnkClass14::DeleteDeviceObjects()
|
||||||
|
{
|
||||||
|
SAFE_RELEASE(m_pD3DSprite2);
|
||||||
|
SAFE_RELEASE(m_pD3DSprite1);
|
||||||
|
}
|
||||||
|
|
||||||
void CUnkClass14::RestoreDeviceObjects()
|
void CUnkClass14::RestoreDeviceObjects()
|
||||||
{
|
{
|
||||||
D3DXCreateSprite(m_pD3DDevice, &m_pD3DSprite1);
|
D3DXCreateSprite(m_pD3DDevice, &m_pD3DSprite1);
|
||||||
|
@ -11,5 +11,6 @@ private:
|
|||||||
public:
|
public:
|
||||||
CUnkClass14(IDirect3DDevice9 *pD3DDevice);
|
CUnkClass14(IDirect3DDevice9 *pD3DDevice);
|
||||||
|
|
||||||
|
void DeleteDeviceObjects();
|
||||||
void RestoreDeviceObjects();
|
void RestoreDeviceObjects();
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user