From 02cacabff7c8301412faaaeccdbf67cd2bbc38c0 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Mon, 26 Jul 2021 12:00:06 +0700 Subject: Make g++ and zig c++ happy --- src/Sprites.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/Sprites.cpp') diff --git a/src/Sprites.cpp b/src/Sprites.cpp index ef60a7d..d18d64a 100644 --- a/src/Sprites.cpp +++ b/src/Sprites.cpp @@ -322,5 +322,18 @@ void Sprites::draw() glDisable(GL_TEXTURE_2D); glEnable(GL_CULL_FACE); //glDisable(GL_POLYGON_OFFSET_FILL); - } + +Sprites::~Sprites() +{ + const GLuint textures[] { + muzzleflaretextureptr, + flaretextureptr, + bullettextureptr, + smoketextureptr, + bloodtextureptr, + raintextureptr, + snowtextureptr, + }; + glDeleteTextures(7, textures); +}; -- cgit 1.4.1