diff options
| author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-07-26 12:00:06 +0700 |
|---|---|---|
| committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-07-26 12:00:06 +0700 |
| commit | 02cacabff7c8301412faaaeccdbf67cd2bbc38c0 (patch) | |
| tree | 18dcc35ce477dd93b9767697156b5c57f92f420b /src/Sprites.cpp | |
| parent | 2f439764f5e115c37034cf9d4a8d7f39f696f30f (diff) | |
| download | blackshades-02cacabff7c8301412faaaeccdbf67cd2bbc38c0.tar.gz | |
Make g++ and zig c++ happy
Diffstat (limited to 'src/Sprites.cpp')
| -rw-r--r-- | src/Sprites.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
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); +}; |
