mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
Erreur stupide
This commit is contained in:
parent
c0f5e5f4fc
commit
9a92d7a20c
1 changed files with 2 additions and 4 deletions
|
|
@ -6,9 +6,7 @@
|
|||
|
||||
#define VERTEX_SIZE 8
|
||||
|
||||
Batch2D::Batch2D(size_t capacity) : capacity(capacity),
|
||||
offset(0),
|
||||
color(1.0f, 1.0f, 1.0f, 1.0f){
|
||||
Batch2D::Batch2D(size_t capacity) : capacity(capacity), offset(0), color(1.0f, 1.0f, 1.0f, 1.0f){
|
||||
const int attrs[] = {
|
||||
2, 2, 4, 0 //null terminator
|
||||
};
|
||||
|
|
@ -26,7 +24,7 @@ Batch2D::Batch2D(size_t capacity) : capacity(capacity),
|
|||
|
||||
Batch2D::~Batch2D(){
|
||||
delete blank;
|
||||
delete buffer;
|
||||
delete[] buffer;
|
||||
delete mesh;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue