Skip to content

Commit

Permalink
Texture Manager: Print message about images that fail to load
Browse files Browse the repository at this point in the history
There is a suspicious number of PNG load errors being printed, something
fishy is going on...
  • Loading branch information
skyjake committed Jan 2, 2012
1 parent 14bd2a9 commit 69ab614
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions doomsday/engine/portable/src/gl_texmanager.c
Expand Up @@ -1474,9 +1474,14 @@ uint8_t* GL_LoadImageFromFile(image_t* img, DFile* file)
}
}

if(!img->pixels) return NULL; // Not a recogniseable format.
if(!img->pixels)
{
Con_Message("GL_LoadImageFromFile: \"%s\" unrecognizable, could not load.\n",
F_PrettyPath(Str_Text(AbstractFile_Path(DFile_File_Const(file)))));
return NULL; // Not a recogniseable format.
}

VERBOSE( Con_Message("GL_LoadImage: \"%s\" (%ix%i)\n",
VERBOSE( Con_Message("GL_LoadImageFromFile: \"%s\" (%ix%i)\n",
F_PrettyPath(Str_Text(AbstractFile_Path(DFile_File_Const(file)))), img->size.width, img->size.height) );

// How about some color-keying?
Expand Down

0 comments on commit 69ab614

Please sign in to comment.