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/Text.cpp | |
| parent | 2f439764f5e115c37034cf9d4a8d7f39f696f30f (diff) | |
| download | blackshades-02cacabff7c8301412faaaeccdbf67cd2bbc38c0.tar.gz | |
Make g++ and zig c++ happy
Diffstat (limited to 'src/Text.cpp')
| -rw-r--r-- | src/Text.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Text.cpp b/src/Text.cpp index 99878d3..2329360 100644 --- a/src/Text.cpp +++ b/src/Text.cpp @@ -66,3 +66,8 @@ void Text::glPrint(GLint x, GLint y, char *string, int set, float size, float wi glEnable(GL_DEPTH_TEST); // Enables Depth Testing glTexEnvi( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE ); } + +Text::~Text() +{ + glDeleteTextures(1, &FontTexture); +} |
