mirror of
https://github.com/hyprwm/Hyprland
synced 2026-04-06 03:20:36 +02:00
14 lines
178 B
C++
14 lines
178 B
C++
#include "Shader.hpp"
|
|
|
|
SShader::~SShader() {
|
|
destroy();
|
|
}
|
|
|
|
void SShader::destroy() {
|
|
if (program == 0)
|
|
return;
|
|
|
|
glDeleteProgram(program);
|
|
|
|
program = 0;
|
|
}
|