Commit faba8d73 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Send a notification that the GL texture changed in flip_surface().

Strictly speaking the texture doesn't get unloaded, but it does get associated with a different surface. The FBO cache in particular is much happier when it gets notified of these.
parent 2b1e0336
......@@ -2710,6 +2710,9 @@ void flip_surface(IWineD3DSurfaceImpl *front, IWineD3DSurfaceImpl *back) {
tmp = back->texture_name_srgb;
back->texture_name_srgb = front->texture_name_srgb;
front->texture_name_srgb = tmp;
resource_unload((IWineD3DResourceImpl *)back);
resource_unload((IWineD3DResourceImpl *)front);
}
{
......
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