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/Text.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Text.cpp') 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); +} -- cgit 1.4.1