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/
|
||||
build/
|
||||
protocols/*.h
|
||||
compile_commands.json
|
||||
protocols/*.c
|
||||
protocols/*.h
|
||||
|
|
|
@ -4,6 +4,10 @@ CTexture::CTexture() {
|
|||
// naffin'
|
||||
}
|
||||
|
||||
CTexture::~CTexture() {
|
||||
destroyTexture();
|
||||
}
|
||||
|
||||
void CTexture::destroyTexture() {
|
||||
if (m_bAllocated) {
|
||||
glDeleteTextures(1, &m_iTexID);
|
||||
|
|
|
@ -13,6 +13,7 @@ enum TEXTURETYPE {
|
|||
class CTexture {
|
||||
public:
|
||||
CTexture();
|
||||
~CTexture();
|
||||
|
||||
void destroyTexture();
|
||||
void allocate();
|
||||
|
|
Loading…
Reference in a new issue