mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
assets-related refactor
This commit is contained in:
parent
216e38e411
commit
befc9cf09c
14 changed files with 242 additions and 202 deletions
|
|
@ -142,5 +142,7 @@ std::unique_ptr<Atlas> BlocksPreview::build(
|
|||
fbo.unbind();
|
||||
|
||||
Window::viewport(0, 0, Window::width, Window::height);
|
||||
return std::unique_ptr<Atlas>(builder.build(2));
|
||||
auto newAtlas = std::unique_ptr<Atlas>(builder.build(2));
|
||||
newAtlas->prepare();
|
||||
return newAtlas;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue