wined3d: Invalidate the srgb tex in surface::unload.

This commit is contained in:
Stefan Dösinger 2009-06-09 23:10:08 -07:00 committed by Alexandre Julliard
parent d2ca7cf428
commit 20401fa9af
1 changed files with 1 additions and 0 deletions

View File

@ -863,6 +863,7 @@ static void WINAPI IWineD3DSurfaceImpl_UnLoad(IWineD3DSurface *iface) {
IWineD3DSurface_ModifyLocation(iface, SFLAG_INDRAWABLE, FALSE);
}
IWineD3DSurface_ModifyLocation(iface, SFLAG_INTEXTURE, FALSE);
IWineD3DSurface_ModifyLocation(iface, SFLAG_INSRGBTEX, FALSE);
This->Flags &= ~(SFLAG_ALLOCATED | SFLAG_SRGBALLOCATED);
/* Destroy PBOs, but load them into real sysmem before */