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.
This commit is contained in:
Henri Verbeet 2010-11-17 12:38:57 +01:00 committed by Alexandre Julliard
parent 2b1e03369d
commit faba8d734d
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}
{