Cleanup the code related to using depth texture