summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/runtimerender/Qt3DSDistanceFieldGlyphCache.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runtimerender/Qt3DSDistanceFieldGlyphCache.cpp b/src/runtimerender/Qt3DSDistanceFieldGlyphCache.cpp
index b919ca5..d19c9f6 100644
--- a/src/runtimerender/Qt3DSDistanceFieldGlyphCache.cpp
+++ b/src/runtimerender/Qt3DSDistanceFieldGlyphCache.cpp
@@ -494,7 +494,8 @@ bool Q3DSDistanceFieldGlyphCache::loadPregeneratedCache(const QRawFont &font)
resizeTexture(texInfo, width, height);
- memcpy(texInfo->copy.bits(), textureData, size);
+ for (int y = 0; y < height; ++y)
+ memcpy(texInfo->copy.scanLine(y), textureData + y * width, width);
textureData += size;
QImage &image = texInfo->copy;