Fix font generation
This commit is contained in:
parent
9a69d9ba03
commit
609cbc167e
@ -135,7 +135,10 @@ namespace Assets
|
||||
auto* material = builder->getAllocator()->allocate<Game::Material>();
|
||||
std::memcpy(material, Game::DB_FindXAssetHeader(Game::ASSET_TYPE_MATERIAL, "fonts/gamefonts_pc").material, sizeof(Game::Material));
|
||||
|
||||
material->textureTable = builder->getAllocator()->allocate<Game::MaterialTextureDef>();
|
||||
auto textureTable = builder->getAllocator()->allocate<Game::MaterialTextureDef>();
|
||||
std::memcpy(textureTable, material->textureTable, sizeof(Game::MaterialTextureDef));
|
||||
|
||||
material->textureTable = textureTable;
|
||||
material->textureTable->u.image = image;
|
||||
material->info.name = fontName;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user