d3d: Fix variable assignment in d3d_set_shader