From: James Turner Date: Fri, 17 Jan 2014 16:27:33 +0000 (+0000) Subject: Ensure type tag of contextId binding is set. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1613257bdca46685cb356f9c16e4071e0d57db63;p=simgear.git Ensure type tag of contextId binding is set. (Otherwise defaults to DOUBLE). --- 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);