Push the old value onto the material constant stack if the stack is empty.

Signed-off-by: John McCutchan <john@johnmccutchan.com>
State setting sample.

Signed-off-by: John McCutchan <john@johnmccutchan.com>