Enable depth test when view changes and fix backface-culling logic