[PATCH 3/5] wined3d: Factor out context_gl_apply_texture_draw_state().