suppress some warnings
This commit is contained in:
@@ -124,7 +124,7 @@ namespace OpenVulkano::Scene
|
||||
// store RGB as RGBA
|
||||
const msdfgen::BitmapConstRef<msdfgen::byte, 3> storage = generator.atlasStorage();
|
||||
msdfgen::byte* data = static_cast<msdfgen::byte*>(m_atlasData->GetTexture()->textureBuffer);
|
||||
for (size_t srcPos = 0, dstPos = 0; srcPos < width * height * 3; srcPos += 3, dstPos += 4)
|
||||
for (size_t srcPos = 0, dstPos = 0; srcPos < static_cast<size_t>(width * height * 3); srcPos += 3, dstPos += 4)
|
||||
{
|
||||
data[dstPos] = storage.pixels[srcPos];
|
||||
data[dstPos + 1] = storage.pixels[srcPos + 1];
|
||||
|
||||
Reference in New Issue
Block a user