[PATCH 04/10] wined3d: Cleanup wined3d_check_surface_capability().