From 2027b0587d5d2c20985ce5e45e48caa4cd420d20 Mon Sep 17 00:00:00 2001 From: Alexander Dorofeyev Date: Wed, 14 May 2008 22:25:10 +0300 Subject: [PATCH] wined3d: Only copy front buffer to screen in gdi RealizePalette. --- dlls/wined3d/surface_gdi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/surface_gdi.c b/dlls/wined3d/surface_gdi.c index 1302ac33b8e..030b8482837 100644 --- a/dlls/wined3d/surface_gdi.c +++ b/dlls/wined3d/surface_gdi.c @@ -650,7 +650,7 @@ HRESULT WINAPI IWineGDISurfaceImpl_RealizePalette(IWineD3DSurface *iface) { /* Update the image because of the palette change. Some games like e.g Red Alert call SetEntries a lot to implement fading. */ - if(This->resource.usage & WINED3DUSAGE_RENDERTARGET) + if(This == (IWineD3DSurfaceImpl *) This->resource.wineD3DDevice->ddraw_primary) x11_copy_to_screen(This, NULL); return WINED3D_OK;