Merge pull request #1662 from dneto0/fix-leak2

HLSL: Avoid leaking a shadow sampler struct