Ensure type tag of contextId binding is set.

(Otherwise defaults to DOUBLE).
This commit is contained in:
James Turner 2014-01-17 16:27:33 +00:00
parent 1061580118
commit 1613257bdc

View 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);