From 1613257bdca46685cb356f9c16e4071e0d57db63 Mon Sep 17 00:00:00 2001 From: James Turner Date: Fri, 17 Jan 2014 16:27:33 +0000 Subject: [PATCH] Ensure type tag of contextId binding is set. (Otherwise defaults to DOUBLE). --- simgear/scene/material/Technique.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5