mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
alignment related fix
This commit is contained in:
parent
f6dd298e07
commit
38c364b369
1 changed files with 1 additions and 1 deletions
|
|
@ -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<ubyte[]>(width * height * pixsize);
|
||||
data = std::make_unique<ubyte[]>((width + width % 2) * (height + width % 2) * pixsize);
|
||||
}
|
||||
|
||||
ImageData::ImageData(ImageFormat format, uint width, uint height, std::unique_ptr<ubyte[]> data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue