[core] only bind uniforms that exist in the program

This commit is contained in:
Konstantin Käfer
2017-06-04 15:45:03 +02:00
committed by John Firebaugh
parent 951f599706
commit eaa8f23672

View File

@@ -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);
}