winemac: When setting a view for an OpenGL context and it is latent, clear any existing view.
This commit is contained in:
parent
1896396330
commit
d57a99b482
|
@ -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];
|
||||
|
||||
|
|
Loading…
Reference in New Issue