if (LastCreatedTexture!=NULL) //if a texture was loaded before, hopefully this texture contains now the data, so we can add it
{
if ( uMod_Client!=NULL) uMod_Client->AddTexture( LastCreatedTexture);
}
This hope is not always justified, especially if the game doesn't use d3dx9 (for example: NFS Underground 2), so oftenly empty textures are saved.
In uMod_DX9/uMod_IDirect3DDevice9.cpp, uMod_IDirect3DDevice9::CreateTexture, line 334
This hope is not always justified, especially if the game doesn't use d3dx9 (for example: NFS Underground 2), so oftenly empty textures are saved.