[FIX] Set state that affects shadow buffer clearing before the clear happens (in particular, depth write).
[FIX] Set state that affects shadow buffer clearing before the clear happens (in particular, depth write).

RainsSoft/engine,nizihabi/engine,playcanvas/engine,3DGEOM/engine,SuperStarPL/engine,nizihabi/engine,sereepap2029/playcanvas,maxwellalive/engine,shinate/engine,MicroWorldwide/PlayCanvas,sanyaade-teachings/engine,RainsSoft/engine,playcanvas/engine,shinate/engine,sereepap2029/playcanvas,aidinabedi/playcanvas-engine,H1Gdev/engine,sereepap2029/playcanvas,SuperStarPL/engine,horryq/engine-1,H1Gdev/engine,guycalledfrank/engine,shinate/engine,horryq/engine-1,RainsSoft/engine,nizihabi/engine,aidinabedi/playcanvas-engine,3DGEOM/engine,horryq/engine-1,3DGEOM/engine,maxwellalive/engine,maxwellalive/engine,SuperStarPL/engine,sanyaade-teachings/engine,sanyaade-teachings/engine,guycalledfrank/engine,MicroWorldwide/PlayCanvas