culturespy / umod

Automatically exported from code.google.com/p/texmod
13 stars 7 forks source link

Adding textures before it's actually fills with data #53

Open CrabJournal opened 2 years ago

CrabJournal commented 2 years ago

In uMod_DX9/uMod_IDirect3DDevice9.cpp, uMod_IDirect3DDevice9::CreateTexture, line 334

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.