Zebediah Figura : wined3d: Check the wined3d resource type and usage instead of the GL target in texture_binding_might_invalidate_ps().