diff --git a/simgear/scene/material/Technique.cxx b/simgear/scene/material/Technique.cxx index 4caa9d0c..dc714bc2 100644 --- a/simgear/scene/material/Technique.cxx +++ b/simgear/scene/material/Technique.cxx @@ -118,7 +118,7 @@ void Technique::validateInContext(GraphicsContext* gc) Status oldVal = contextInfo.valid(); Status newVal = INVALID; expression::FixedLengthBinding<1> binding; - binding.getBindings()[_contextIdLocation].val.intVal = contextId; + binding.getBindings()[_contextIdLocation] = expression::Value((int) contextId); if (_validExpression->getValue(&binding)) newVal = VALID; contextInfo.valid.compareAndSwap(oldVal, newVal);