Commit 20401fa9 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

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

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