Added HyprError for showing config errors
This commit is contained in:
parent
037bad4986
commit
7347a72ba6
8 changed files with 167 additions and 1 deletions
|
|
@ -19,4 +19,17 @@ CTexture::CTexture(wlr_texture* tex) {
|
|||
}
|
||||
|
||||
m_vSize = Vector2D(tex->width, tex->height);
|
||||
}
|
||||
|
||||
void CTexture::destroyTexture() {
|
||||
if (m_iTexID) {
|
||||
glDeleteTextures(1, &m_iTexID);
|
||||
m_iTexID = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void CTexture::allocate() {
|
||||
if (!m_iTexID) {
|
||||
glGenTextures(1, &m_iTexID);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue