mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
Minor refactor
This commit is contained in:
parent
0d36f52bdd
commit
2ad115a2a8
9 changed files with 19 additions and 20 deletions
|
|
@ -18,11 +18,10 @@ BlocksPreview::BlocksPreview(Shader* shader,
|
|||
Atlas* atlas,
|
||||
const ContentGfxCache* cache)
|
||||
: shader(shader), atlas(atlas), cache(cache) {
|
||||
batch = new Batch3D(1024);
|
||||
batch = std::make_unique<Batch3D>(1024);
|
||||
}
|
||||
|
||||
BlocksPreview::~BlocksPreview() {
|
||||
delete batch;
|
||||
}
|
||||
|
||||
void BlocksPreview::begin(const Viewport* viewport) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue