[PATCH 5/5] wined3d: Factor out wined3d_texture_get_gl_sample_count() function.