mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-27 10:11:55 -07:00
@@ -791,4 +791,11 @@ uint32_t glFormatToType(uint32_t gl) {
|
||||
GL_UNSIGNED_INT_2_10_10_10_REV :
|
||||
#endif
|
||||
GL_UNSIGNED_BYTE;
|
||||
}
|
||||
|
||||
bool envEnabled(const std::string& env) {
|
||||
const auto ENV = getenv(env.c_str());
|
||||
if (!ENV)
|
||||
return false;
|
||||
return std::string(ENV) == "1";
|
||||
}
|
Reference in New Issue
Block a user