Commit d57a99b4 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

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

parent 18963963
...@@ -168,7 +168,11 @@ void macdrv_make_context_current(macdrv_opengl_context c, macdrv_view v) ...@@ -168,7 +168,11 @@ void macdrv_make_context_current(macdrv_opengl_context c, macdrv_view v)
[context setLatentView:nil]; [context setLatentView:nil];
} }
else else
{
if ([context view])
[context clearDrawableLeavingSurfaceOnScreen];
[context setLatentView:view]; [context setLatentView:view];
}
[context makeCurrentContext]; [context makeCurrentContext];
......
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