mirror of
https://github.com/NoelFB/blah.git
synced 2024-12-01 17:38:57 +08:00
Font::create could return incorrect value type
This commit is contained in:
parent
99595f265f
commit
f1e45b129c
|
@ -49,7 +49,7 @@ FontRef Font::create(Stream& stream)
|
||||||
if (stbtt_InitFont(fn, buffer.data(), 0) == 0)
|
if (stbtt_InitFont(fn, buffer.data(), 0) == 0)
|
||||||
{
|
{
|
||||||
Log::error("Unable to parse Font file");
|
Log::error("Unable to parse Font file");
|
||||||
return false;
|
return FontRef();
|
||||||
}
|
}
|
||||||
|
|
||||||
// setup
|
// setup
|
||||||
|
|
Loading…
Reference in New Issue
Block a user