Hyprland/src/render/Shader.cpp
UjinT34 7374a023ef
renderer/opengl: Extract shaders from source (#9600)
---------

Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
2025-03-29 01:19:35 +01:00

14 lines
178 B
C++

#include "Shader.hpp"
CShader::~CShader() {
destroy();
}
void CShader::destroy() {
if (program == 0)
return;
glDeleteProgram(program);
program = 0;
}