mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
minor refactor
This commit is contained in:
parent
b04dbd5809
commit
a0b8776477
3 changed files with 14 additions and 19 deletions
|
|
@ -76,6 +76,14 @@ void GLSLExtension::undefine(const std::string& name) {
|
|||
}
|
||||
}
|
||||
|
||||
void GLSLExtension::setDefined(const std::string& name, bool defined) {
|
||||
if (defined) {
|
||||
define(name, "TRUE");
|
||||
} else {
|
||||
undefine(name);
|
||||
}
|
||||
}
|
||||
|
||||
inline std::runtime_error parsing_error(
|
||||
const io::path& file, uint linenum, const std::string& message
|
||||
) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue