mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 11:43:04 +08:00
[saco] Implement/match CChatWindow::ReleaseTextures and the FUNC_10067410 tail call into it, which is a bare 5-byte jmp
This commit is contained in:
@@ -301,3 +301,30 @@ void CChatWindow::AddInfoMessage(CHAR * szFormat, ...)
|
||||
|
||||
sub_10067BE0(4, szBuffer, 0, m_dwChatInfoColor, 0);
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
void CChatWindow::ReleaseTextures()
|
||||
{
|
||||
if(field_63BE) {
|
||||
field_63BE->Release();
|
||||
field_63BE = NULL;
|
||||
}
|
||||
|
||||
if(field_63BA) {
|
||||
field_63BA->Release();
|
||||
field_63BA = NULL;
|
||||
}
|
||||
|
||||
if(field_63B6) {
|
||||
field_63B6->Release();
|
||||
field_63B6 = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
void CChatWindow::FUNC_10067410()
|
||||
{
|
||||
ReleaseTextures();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user