File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -2228,8 +2228,10 @@ static Font LoadBMFont(const char *fileName)
2228
2228
imFonts [i ] = LoadImage (TextFormat ("%s/%s" , GetDirectoryPath (fileName ), imFileName [i ]));
2229
2229
2230
2230
PixelFormat format = imFonts [i ].format ;
2231
- if (format != PIXELFORMAT_UNCOMPRESSED_GRAYSCALE && format != PIXELFORMAT_UNCOMPRESSED_R8G8B8A8 && format != PIXELFORMAT_UNCOMPRESSED_R8G8B8 )
2231
+ if (format != PIXELFORMAT_UNCOMPRESSED_GRAYSCALE && format != PIXELFORMAT_UNCOMPRESSED_R8G8B8A8 && format != PIXELFORMAT_UNCOMPRESSED_R8G8B8 ){
2232
+ TRACELOG (LOG_WARNING , "FONT: [%s] Page number %i used an unsupported pixel format" , i , fileName );
2232
2233
continue ;
2234
+ }
2233
2235
2234
2236
// Convert image to GRAYSCALE + ALPHA, using the mask as the alpha channel
2235
2237
Image imFontAlpha = {
You can’t perform that action at this time.
0 commit comments