glsl: Cleanup/Address feedback
This commit is contained in:
parent
74f683787e
commit
6eea88d614
10 changed files with 24 additions and 28 deletions
|
@ -177,8 +177,7 @@ Id VarAlloc::Alloc(GlslVarType type) {
|
|||
|
||||
void VarAlloc::Free(Id id) {
|
||||
if (id.is_valid == 0) {
|
||||
// throw LogicError("Freeing invalid variable");
|
||||
return;
|
||||
throw LogicError("Freeing invalid variable");
|
||||
}
|
||||
auto& use_tracker{GetUseTracker(id.type)};
|
||||
use_tracker.var_use[id.index] = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue