mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-13 19:15:45 -07:00
Added HyprError for showing config errors
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user