Ken Thomases : winemac: When setting a view for an OpenGL context and it is latent, clear any existing view.
Alexandre Julliard
julliard at winehq.org
Tue Jan 14 13:44:59 CST 2014
Module: wine
Branch: master
Commit: d57a99b48274e2020382465bccc69df5aa24630e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d57a99b48274e2020382465bccc69df5aa24630e
Author: Ken Thomases <ken at 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];
More information about the wine-cvs
mailing list