Module: wine Branch: master Commit: d57a99b48274e2020382465bccc69df5aa24630e URL: http://source.winehq.org/git/wine.git/?a=commit;h=d57a99b48274e2020382465bcc...
Author: Ken Thomases ken@codeweavers.com Date: Tue Jan 14 01:25:01 2014 -0600
winemac: When setting a view for an OpenGL context and it is latent, clear any existing view.
---
dlls/winemac.drv/cocoa_opengl.m | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/dlls/winemac.drv/cocoa_opengl.m b/dlls/winemac.drv/cocoa_opengl.m index 0b67ed1..752fb77 100644 --- a/dlls/winemac.drv/cocoa_opengl.m +++ b/dlls/winemac.drv/cocoa_opengl.m @@ -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];