different improvements

This commit is contained in:
ohyzha
2025-01-18 13:26:37 +02:00
parent dbc52eff42
commit a5a1fd99d5
9 changed files with 168 additions and 137 deletions

View File

@@ -157,9 +157,8 @@ namespace OpenVulkano::Scene
+ glyph.firstGlyphByteInAtlas;
for (int row = 0; row < slot->bitmap.rows; row++)
{
std::memcpy(baseAddress + row * m_atlasData->GetTexture()->resolution.x,
&slot->bitmap.buffer[(slot->bitmap.rows - 1 - row) * slot->bitmap.pitch],
slot->bitmap.width);
std::memcpy(baseAddress - row * m_atlasData->GetTexture()->resolution.x,
&slot->bitmap.buffer[row * slot->bitmap.pitch], slot->bitmap.width);
}
}
else