Józef Kucia : wined3d: Make sure that "tgsm_count" is not decreased while adding TGSM declarations.