Zebediah Figura : wined3d: Factor out context_gl_apply_texture_draw_state().