diff --git a/source/graphics/Font.cpp b/source/graphics/Font.cpp index c3b5157619..197e915bb6 100644 --- a/source/graphics/Font.cpp +++ b/source/graphics/Font.cpp @@ -528,7 +528,7 @@ void CFont::BlendGlyphBitmapToTextureRGBA(const FT_Bitmap& bitmap, int targetX, for (uint x{0}; x != bitmap.width; ++x) { - const std::span tempDstRow{dstRow + x * m_TextureFormatStride, 4}; + u8* tempDstRow{dstRow + x * m_TextureFormatStride}; u8 alpha{srcRow[x]}; const float srcAlpha{m_StrokeWidth > 0 ? (*m_GammaCorrectionLUT)[alpha] : alpha/255.0f};