#76 bug on ceating render cmd buffer found and fixed

precedence tests would fail because set mask wouldnt be updated when
cache test fails