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:
parent
b238e39ec8
commit
33df806819
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue