minor fixes
This commit is contained in:
2
3rdParty/msdf/CMakeLists.txt
vendored
2
3rdParty/msdf/CMakeLists.txt
vendored
@@ -40,6 +40,8 @@ elseif(APPLE AND NOT IOS)
|
||||
set(TRIPLET arm64-osx CACHE INTERNAL "triplet")
|
||||
elseif(IOS)
|
||||
set(TRIPLET arm64-ios CACHE INTERNAL "triplet")
|
||||
else()
|
||||
message(FATAL_ERROR "Unknown OS, can't build msdfgen")
|
||||
endif()
|
||||
|
||||
execute_process(COMMAND ${VCPKG_EXECUTABLE} install freetype:${TRIPLET} libpng:${TRIPLET})
|
||||
|
||||
@@ -52,6 +52,8 @@ namespace OpenVulkano::Scene
|
||||
{
|
||||
return;
|
||||
}
|
||||
// just in case if FontAtlasGenerator changed it's atlas
|
||||
m_material.texture = const_cast<Texture*>(&m_fontAtlasGenerator->GetAtlas());
|
||||
std::map<unicode_t, GlyphInfo>& symbols = m_fontAtlasGenerator->GetAtlasInfo();
|
||||
m_geometry.Close();
|
||||
m_geometry.Init(text.size() * 4, text.size() * 6);
|
||||
|
||||
Reference in New Issue
Block a user