Prevent shate changes on the deferred render state between each flush. Added equals and not equals
Updated math library