From 9a92d7a20cd14b0a33ebcb79a9985c385d87a196 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Mon, 18 Jul 2022 02:47:50 +0300 Subject: [PATCH] Erreur stupide --- src/graphics/Batch2D.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/graphics/Batch2D.cpp b/src/graphics/Batch2D.cpp index 45a00579..a96aa4fd 100644 --- a/src/graphics/Batch2D.cpp +++ b/src/graphics/Batch2D.cpp @@ -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; }