[core] only bind uniforms that exist in the program
This commit is contained in:
committed by
John Firebaugh
parent
951f599706
commit
eaa8f23672
@@ -30,7 +30,7 @@ public:
|
||||
class State {
|
||||
public:
|
||||
void operator=(const Value& value) {
|
||||
if (!current || *current != value.t) {
|
||||
if (location >= 0 && (!current || *current != value.t)) {
|
||||
current = value.t;
|
||||
bindUniform(location, value.t);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user