From a3a22598ba1829973fdd51442b8558378712c2a4 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 28 Jul 2019 12:31:25 +0200 Subject: [PATCH] delete[] xbuffer --- basegraph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basegraph.cpp b/basegraph.cpp index b8d65550..c0420437 100644 --- a/basegraph.cpp +++ b/basegraph.cpp @@ -287,7 +287,7 @@ void display_data::set_projection(int ed) { xbuffer[z][y][x] = glhr::makevertex(inverse_exp_table[z][y][x][0], inverse_exp_table[z][y][x][1], inverse_exp_table[z][y][x][2]); glTexImage3D(GL_TEXTURE_3D, 0, 34836 /*GL_RGBA32F*/, PRECX, PRECX, PRECZ, 0, GL_RGBA, GL_FLOAT, xbuffer); - delete xbuffer; + delete[] xbuffer; }