Support for mpv user shaders with libplacebo

This commit is contained in:
jojo61
2020-06-07 12:31:18 +02:00
parent c7c4cb06a6
commit 03b770ce47
7 changed files with 211 additions and 29 deletions

View File

@@ -397,8 +397,11 @@ void cOglFont::Cleanup(void)
delete fonts;
fonts = 0;
if (FT_Done_FreeType(ftLib))
esyslog("failed to deinitialize FreeType library!");
if (ftLib) {
if (FT_Done_FreeType(ftLib))
esyslog("failed to deinitialize FreeType library!");
}
ftLib = 0;
}
cOglGlyph *cOglFont::Glyph(FT_ULong charCode) const