Stefan Dösinger : wined3d: Prepare GL resources before calling context_apply_fbo_state.