mirror of
https://github.com/gwdevhub/gMod.git
synced 2026-07-22 18:39:31 +00:00
BugFix:
- append '\0' at the end of game name (dll injection) - Release() fake texture (if force reload) instead of calling RemoveTexture(..) Improvements: - template support, you can now have more than one template set one of them as default. - update function will only update the texture if this is needed or the reload button is pressed. - textures will also be removed, if they are removed from the package list.
This commit is contained in:
@@ -334,10 +334,11 @@ int OTM_TextureClient::MergeUpdate(void)
|
||||
Update[u].Checked = true;
|
||||
found = true;
|
||||
Update[u].pTexture = FileToMod[i].pTexture; //might also be a NULL pointer
|
||||
|
||||
if (Update[u].ForceReload && Update[i].pTexture!=NULL)
|
||||
{
|
||||
OTM_IDirect3DTexture9 *pTexture = Update[u].pTexture->CrossRef_D3Dtex;
|
||||
RemoveTexture( Update[u].pTexture);
|
||||
Update[u].pTexture->Release();
|
||||
Update[u].pTexture = NULL;
|
||||
if (pTexture!=NULL) //should always be the case
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user