wined3d: Setting render target 0 to NULL in an application error.