Revert "adapted to cocos 3.2"

This reverts commit c2c557af12efda8673f1a2dc6d6d6b768f0ba19f.
Revert to d9739a60b00839151e44ad9475448d478049d4eb
[#78382726] Restore texture depth handling