From d5cbb8375e191d9169611881e4625fe0e75a39bb Mon Sep 17 00:00:00 2001 From: "H. Verbeet" Date: Mon, 30 Jun 2008 23:03:42 +0200 Subject: [PATCH] wined3d: Use ModifyLocation() to force a reload on color key change. Just unsetting SFLAG_INTEXTURE doesn't work for FBOs because the drawable and texture are the same there (and ModifyLocation() is the correct way to do this anyway). Fixes another ddraw test failure with FBO ORM. --- dlls/wined3d/surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 48e13fe4054..0171e31a9fa 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -2281,7 +2281,7 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_LoadTexture(IWineD3DSurface *iface, BO IWineD3DSurface_LoadLocation(iface, SFLAG_INSYSMEM, NULL); /* Make sure the texture is reloaded because of the color key change, this kills performance though :( */ /* TODO: This is not necessarily needed with hw palettized texture support */ - This->Flags &= ~SFLAG_INTEXTURE; + IWineD3DSurface_ModifyLocation(iface, SFLAG_INSYSMEM, TRUE); } else { TRACE("surface is already in texture\n"); return WINED3D_OK;