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:
parent
2b1e03369d
commit
faba8d734d
|
@ -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);
|
||||
}
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue