HLSL: Fix #1432: Globally initialize local static variables.