Skip to content

Commit

Permalink
log which normal map failed to load
Browse files Browse the repository at this point in the history
  • Loading branch information
kirides committed Aug 25, 2024
1 parent c0e9d97 commit 053172f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions D3D11Engine/D3D7/MyDirectDrawSurface7.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ void MyDirectDrawSurface7::LoadAdditionalResources( zCTexture* ownedTexture ) {
Engine::GraphicsEngine->CreateTexture( &nrmmapTexture );
if ( XR_SUCCESS != nrmmapTexture->Init( normalmap ) ) {
SAFE_DELETE( nrmmapTexture );
LogWarn() << "Failed to load normalmap!";
LogWarn() << "Failed to load normalmap: " << normalmap;
}
break; // No need to check the other folders
}
Expand All @@ -131,7 +131,7 @@ void MyDirectDrawSurface7::LoadAdditionalResources( zCTexture* ownedTexture ) {
Engine::GraphicsEngine->CreateTexture( &nrmmapTexture );
if ( XR_SUCCESS != nrmmapTexture->Init( normalmap ) ) {
SAFE_DELETE( nrmmapTexture );
LogWarn() << "Failed to load normalmap!";
LogWarn() << "Failed to load normalmap: " << normalmap;
}
}

Expand All @@ -144,7 +144,7 @@ void MyDirectDrawSurface7::LoadAdditionalResources( zCTexture* ownedTexture ) {
Engine::GraphicsEngine->CreateTexture( &fxMapTexture );
if ( XR_SUCCESS != fxMapTexture->Init( fxMap ) ) {
SAFE_DELETE( fxMapTexture );
LogWarn() << "Failed to load normalmap!";
LogWarn() << "Failed to load fxMap: " << fxMap;
}
break; // No need to check the other folders
}
Expand All @@ -157,7 +157,7 @@ void MyDirectDrawSurface7::LoadAdditionalResources( zCTexture* ownedTexture ) {
Engine::GraphicsEngine->CreateTexture( &fxMapTexture );
if ( XR_SUCCESS != fxMapTexture->Init( fxMap ) ) {
SAFE_DELETE( fxMapTexture );
LogWarn() << "Failed to load normalmap!";
LogWarn() << "Failed to load fxMap: " << fxMap;
}
}

Expand Down

0 comments on commit 053172f

Please sign in to comment.