Roderick Colenbrander : wined3d: Make sure the p8 shader is set to 0 after destroying the main render target .