mirror of
https://github.com/hyprwm/hyprlock.git
synced 2024-12-22 13:29:48 +01:00
label: destroy texture (#230)
* label: destroy texture * misc: gitignore
This commit is contained in:
parent
87fce7923f
commit
6acb7552a3
3 changed files with 10 additions and 1 deletions
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -1,4 +1,8 @@
|
||||||
|
.cache
|
||||||
|
.direnv
|
||||||
|
.envrc
|
||||||
.vscode/
|
.vscode/
|
||||||
build/
|
build/
|
||||||
|
compile_commands.json
|
||||||
|
protocols/*.c
|
||||||
protocols/*.h
|
protocols/*.h
|
||||||
protocols/*.c
|
|
|
@ -4,6 +4,10 @@ CTexture::CTexture() {
|
||||||
// naffin'
|
// naffin'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CTexture::~CTexture() {
|
||||||
|
destroyTexture();
|
||||||
|
}
|
||||||
|
|
||||||
void CTexture::destroyTexture() {
|
void CTexture::destroyTexture() {
|
||||||
if (m_bAllocated) {
|
if (m_bAllocated) {
|
||||||
glDeleteTextures(1, &m_iTexID);
|
glDeleteTextures(1, &m_iTexID);
|
||||||
|
|
|
@ -13,6 +13,7 @@ enum TEXTURETYPE {
|
||||||
class CTexture {
|
class CTexture {
|
||||||
public:
|
public:
|
||||||
CTexture();
|
CTexture();
|
||||||
|
~CTexture();
|
||||||
|
|
||||||
void destroyTexture();
|
void destroyTexture();
|
||||||
void allocate();
|
void allocate();
|
||||||
|
|
Loading…
Reference in a new issue