GPU memory leak when enabling shadow maps

@liumu96 I suggest you demonstrate the memory leak with a live example.

And please keep in mind it’s sufficient to post once and not in multiple topics (Curiosity about glTF GPU memory footprint - #9 by liumu96).