From 38c364b369dc33e46d20f977ec70a1af5807a517 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Sat, 22 Nov 2025 15:30:19 +0300 Subject: [PATCH] alignment related fix --- src/graphics/core/ImageData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/core/ImageData.cpp b/src/graphics/core/ImageData.cpp index 218428e7..8a44068d 100644 --- a/src/graphics/core/ImageData.cpp +++ b/src/graphics/core/ImageData.cpp @@ -16,7 +16,7 @@ ImageData::ImageData(ImageFormat format, uint width, uint height) default: throw std::runtime_error("format is not supported"); } - data = std::make_unique(width * height * pixsize); + data = std::make_unique((width + width % 2) * (height + width % 2) * pixsize); } ImageData::ImageData(ImageFormat format, uint width, uint height, std::unique_ptr data)