]> git.mxchange.org Git - simgear.git/commitdiff
Ensure type tag of contextId binding is set.
authorJames Turner <zakalawe@mac.com>
Fri, 17 Jan 2014 16:27:33 +0000 (16:27 +0000)
committerJames Turner <zakalawe@mac.com>
Fri, 17 Jan 2014 16:27:54 +0000 (16:27 +0000)
(Otherwise defaults to DOUBLE).

simgear/scene/material/Technique.cxx

index 4caa9d0cd3b91485239b98df54272196c7a6ed07..dc714bc2adfbb5492e0182c7aaa79371884c93d0 100644 (file)
@@ -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);