Fixed bug where render state changes wasn't tracked. Fixed blending and depth testing render state bugs.