mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Fixed love.graphics.newFont(filedata) causing crashes (resolves issue #1119).
This commit is contained in:
@@ -85,7 +85,10 @@ int w_newTrueTypeRasterizer(lua_State *L)
|
||||
love::Data *d = nullptr;
|
||||
|
||||
if (luax_istype(L, 1, DATA_ID))
|
||||
{
|
||||
d = luax_checkdata(L, 1);
|
||||
d->retain();
|
||||
}
|
||||
else
|
||||
d = filesystem::luax_getfiledata(L, 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user