winemac: When setting a view for an OpenGL context and it is latent, clear any existing view.

oldstable
Ken Thomases 2014-01-14 01:25:01 -06:00 committed by Alexandre Julliard
parent 1896396330
commit d57a99b482
1 changed files with 4 additions and 0 deletions

View File

@ -168,7 +168,11 @@ void macdrv_make_context_current(macdrv_opengl_context c, macdrv_view v)
[context setLatentView:nil];
}
else
{
if ([context view])
[context clearDrawableLeavingSurfaceOnScreen];
[context setLatentView:view];
}
[context makeCurrentContext];