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

This fixes a render target recreation problem in Age of Empires II.
This commit is contained in:
Roderick Colenbrander 2007-11-08 22:51:01 +01:00 committed by Alexandre Julliard
parent b238e39ec8
commit 33df806819
1 changed files with 1 additions and 0 deletions

View File

@ -2163,6 +2163,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Uninit3D(IWineD3DDevice *iface, D3DCB_D
/* Delete the palette conversion shader if it is around */ /* Delete the palette conversion shader if it is around */
if(This->paletteConversionShader) { if(This->paletteConversionShader) {
GL_EXTCALL(glDeleteProgramsARB(1, &This->paletteConversionShader)); GL_EXTCALL(glDeleteProgramsARB(1, &This->paletteConversionShader));
This->paletteConversionShader = 0;
} }
/* Delete the pbuffer context if there is any */ /* Delete the pbuffer context if there is any */