Ken Thomases : winemac: Don't override -[NSOpenGLContext clearDrawable], just use our own method.
Alexandre Julliard
julliard at winehq.org
Thu Mar 28 15:30:23 CDT 2013
Module: wine
Branch: master
Commit: 4fba2995b633559c9baf4ad881c2d09e8028c964
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4fba2995b633559c9baf4ad881c2d09e8028c964
Author: Ken Thomases <ken at codeweavers.com>
Date: Wed Mar 27 12:05:41 2013 -0500
winemac: Don't override -[NSOpenGLContext clearDrawable], just use our own method.
---
dlls/winemac.drv/cocoa_opengl.m | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/winemac.drv/cocoa_opengl.m b/dlls/winemac.drv/cocoa_opengl.m
index 1368c73..b678cae 100644
--- a/dlls/winemac.drv/cocoa_opengl.m
+++ b/dlls/winemac.drv/cocoa_opengl.m
@@ -45,7 +45,7 @@
context attached). So, we finesse things by first setting the context's view to
a different view (the content view of an off-screen window) and then letting the
original implementation proceed. */
- - (void) clearDrawable
+ - (void) clearDrawableLeavingSurfaceOnScreen
{
static NSWindow* dummyWindow;
static dispatch_once_t once;
@@ -60,7 +60,7 @@
});
[self setView:[dummyWindow contentView]];
- [super clearDrawable];
+ [self clearDrawable];
}
@end
@@ -99,7 +99,7 @@ void macdrv_dispose_opengl_context(macdrv_opengl_context c)
macdrv_remove_view_opengl_context((macdrv_view)[context view], c);
if ([context latentView])
macdrv_remove_view_opengl_context((macdrv_view)[context latentView], c);
- [context clearDrawable];
+ [context clearDrawableLeavingSurfaceOnScreen];
[context release];
[pool release];
@@ -143,7 +143,7 @@ void macdrv_make_context_current(macdrv_opengl_context c, macdrv_view v)
else
{
[WineOpenGLContext clearCurrentContext];
- [context clearDrawable];
+ [context clearDrawableLeavingSurfaceOnScreen];
}
}
else
More information about the wine-cvs
mailing list