mirror of
https://github.com/libretro/ppsspp.git
synced 2025-03-03 22:17:08 +00:00
Fix a shutdown crash with close fonts.
This commit is contained in:
parent
f3a10fb4c3
commit
ab66aa4c45
@ -190,7 +190,7 @@ public:
|
||||
: fontLibID_(fontLibID), font_(font), handle_(handle) {}
|
||||
|
||||
Font *GetFont() { return font_; }
|
||||
FontLib *GetFontLib() { return fontLibList[fontLibID_]; }
|
||||
FontLib *GetFontLib() { if (!IsOpen()) return NULL; return fontLibList[fontLibID_]; }
|
||||
u32 Handle() const { return handle_; }
|
||||
|
||||
bool IsOpen() const { return fontLibID_ != (u32)-1; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user