Added unsupported pixel format log warning
This commit is contained in:
parent
c7f7fa97a2
commit
8414d6e467
|
|
@ -2228,8 +2228,10 @@ static Font LoadBMFont(const char *fileName)
|
||||||
imFonts[i] = LoadImage(TextFormat("%s/%s", GetDirectoryPath(fileName), imFileName[i]));
|
imFonts[i] = LoadImage(TextFormat("%s/%s", GetDirectoryPath(fileName), imFileName[i]));
|
||||||
|
|
||||||
PixelFormat format = imFonts[i].format;
|
PixelFormat format = imFonts[i].format;
|
||||||
if (format != PIXELFORMAT_UNCOMPRESSED_GRAYSCALE && format != PIXELFORMAT_UNCOMPRESSED_R8G8B8A8 && format != PIXELFORMAT_UNCOMPRESSED_R8G8B8)
|
if (format != PIXELFORMAT_UNCOMPRESSED_GRAYSCALE && format != PIXELFORMAT_UNCOMPRESSED_R8G8B8A8 && format != PIXELFORMAT_UNCOMPRESSED_R8G8B8){
|
||||||
|
TRACELOG(LOG_WARNING, "FONT: [%s] Page number %i used an unsupported pixel format", i, fileName);
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// Convert image to GRAYSCALE + ALPHA, using the mask as the alpha channel
|
// Convert image to GRAYSCALE + ALPHA, using the mask as the alpha channel
|
||||||
Image imFontAlpha = {
|
Image imFontAlpha = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user