Commit 33df8068 authored by Roderick Colenbrander's avatar Roderick Colenbrander Committed by Alexandre Julliard

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.
parent b238e39e
...@@ -2163,6 +2163,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Uninit3D(IWineD3DDevice *iface, D3DCB_D ...@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment