wined3d: Move the range fog support test to the template.