mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix small dumb legacy memory leak
This commit is contained in:
parent
a3d35cd10f
commit
4d0b9f049b
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ std::unique_ptr<ImageData> GLTexture::readData() {
|
|||
glGetTexImage(GL_TEXTURE_2D, 0, GL_RGBA, GL_UNSIGNED_BYTE, data.get());
|
||||
glBindTexture(GL_TEXTURE_2D, 0);
|
||||
return std::make_unique<ImageData>(
|
||||
ImageFormat::rgba8888, width, height, data.release()
|
||||
ImageFormat::rgba8888, width, height, std::move(data)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue