Erreur stupide

This commit is contained in:
MihailRis 2022-07-18 02:47:50 +03:00 committed by GitHub
parent c0f5e5f4fc
commit 9a92d7a20c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,9 +6,7 @@
#define VERTEX_SIZE 8 #define VERTEX_SIZE 8
Batch2D::Batch2D(size_t capacity) : capacity(capacity), Batch2D::Batch2D(size_t capacity) : capacity(capacity), offset(0), color(1.0f, 1.0f, 1.0f, 1.0f){
offset(0),
color(1.0f, 1.0f, 1.0f, 1.0f){
const int attrs[] = { const int attrs[] = {
2, 2, 4, 0 //null terminator 2, 2, 4, 0 //null terminator
}; };
@ -26,7 +24,7 @@ Batch2D::Batch2D(size_t capacity) : capacity(capacity),
Batch2D::~Batch2D(){ Batch2D::~Batch2D(){
delete blank; delete blank;
delete buffer; delete[] buffer;
delete mesh; delete mesh;
} }