diff --git a/GeneralsMD/Code/Libraries/Source/WWVegas/WW3D2/textureloader.cpp b/GeneralsMD/Code/Libraries/Source/WWVegas/WW3D2/textureloader.cpp index 7d1795a9eb4..ebe46b86243 100644 --- a/GeneralsMD/Code/Libraries/Source/WWVegas/WW3D2/textureloader.cpp +++ b/GeneralsMD/Code/Libraries/Source/WWVegas/WW3D2/textureloader.cpp @@ -1532,6 +1532,10 @@ bool TextureLoadTaskClass::Begin_Compressed_Load(void) #endif ); + if (!D3DTexture) { + return false; + } + MipLevelCount = mip_level_count; return true; @@ -1627,6 +1631,10 @@ bool TextureLoadTaskClass::Begin_Uncompressed_Load(void) #endif ); + if (!D3DTexture) { + return false; + } + return true; }