warn loudly when trying to load a texture that doesn't exist

This commit is contained in:
Chris Danford
2005-04-18 07:24:23 +00:00
parent 6f588aa7d8
commit 5452cd4851
+2 -1
View File
@@ -73,7 +73,8 @@ void RageBitmapTexture::Create()
/* Tolerate corrupt/unknown images. */
if( img == NULL )
{
LOG->Warn( "RageBitmapTexture: Couldn't load %s: %s", actualID.filename.c_str(), error.c_str() );
CString sWarning = ssprintf( "RageBitmapTexture: Couldn't load %s: %s", actualID.filename.c_str(), error.c_str() );
Dialog::OK( sWarning );
img = RageSurfaceUtils::MakeDummySurface( 64, 64 );
ASSERT( img != NULL );
}