From 33df806819ea9dd6ddc5799e2f1eedf76236ac52 Mon Sep 17 00:00:00 2001 From: Roderick Colenbrander Date: Thu, 8 Nov 2007 22:51:01 +0100 Subject: [PATCH] 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. --- dlls/wined3d/device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index e9cd3de1297..ef6a0eaa411 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -2163,6 +2163,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Uninit3D(IWineD3DDevice *iface, D3DCB_D /* Delete the palette conversion shader if it is around */ if(This->paletteConversionShader) { GL_EXTCALL(glDeleteProgramsARB(1, &This->paletteConversionShader)); + This->paletteConversionShader = 0; } /* Delete the pbuffer context if there is any */