mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-05 14:42:01 -07:00
simplify a bit of code
This commit is contained in:
@@ -6,10 +6,7 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
void Debug::init(std::string IS) {
|
void Debug::init(std::string IS) {
|
||||||
if (ISDEBUG)
|
logFile = "/tmp/hypr/" + IS + (ISDEBUG ? "/hyprlandd.log" : "/hyprland.log");
|
||||||
logFile = "/tmp/hypr/" + IS + "/hyprlandd.log";
|
|
||||||
else
|
|
||||||
logFile = "/tmp/hypr/" + IS + "/hyprland.log";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Debug::wlrLog(wlr_log_importance level, const char* fmt, va_list args) {
|
void Debug::wlrLog(wlr_log_importance level, const char* fmt, va_list args) {
|
||||||
|
@@ -14,7 +14,7 @@ GLint CShader::getUniformLocation(const std::string& unif) {
|
|||||||
|
|
||||||
CShader::~CShader() {
|
CShader::~CShader() {
|
||||||
// destroy shader
|
// destroy shader
|
||||||
if (program != 0) {
|
if (program) {
|
||||||
glDeleteProgram(program);
|
glDeleteProgram(program);
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user